ajoute les devoirs maison (chantier vrai cockpit, étape 3) : rendu en texte libre, suivi des rendus, notation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
bd74eaf20f
commit
33531de44d
17 changed files with 582 additions and 2 deletions
|
|
@ -73,6 +73,12 @@ class Classe extends Model
|
|||
return $this->hasMany(Quiz::class)->latest();
|
||||
}
|
||||
|
||||
/** @return HasMany<Devoir, $this> */
|
||||
public function devoirs(): HasMany
|
||||
{
|
||||
return $this->hasMany(Devoir::class)->latest('echeance');
|
||||
}
|
||||
|
||||
public function estArchivee(): bool
|
||||
{
|
||||
return $this->archivee_a !== null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue