ajoute Quiz flash (chantier vrai cockpit, étape 2) : QCM et vrai/faux, lancé en direct, indépendant d'une séance de lab
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
45f8a69e26
commit
16d1293911
24 changed files with 1249 additions and 5 deletions
|
|
@ -67,6 +67,12 @@ class Classe extends Model
|
|||
return $this->hasMany(Seance::class);
|
||||
}
|
||||
|
||||
/** @return HasMany<Quiz, $this> */
|
||||
public function quizzes(): HasMany
|
||||
{
|
||||
return $this->hasMany(Quiz::class)->latest();
|
||||
}
|
||||
|
||||
public function estArchivee(): bool
|
||||
{
|
||||
return $this->archivee_a !== null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue