ajoute les alertes Prometheus du self-healing et installe Larastan (dette de l'étape 8, 72 erreurs corrigées à la racine)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
f2649d0f8b
commit
d47e8356fc
23 changed files with 340 additions and 22 deletions
|
|
@ -30,11 +30,13 @@ class DemandeInscription extends Model
|
|||
'code_secret_chiffre' => 'encrypted',
|
||||
];
|
||||
|
||||
/** @return BelongsTo<Classe, $this> */
|
||||
public function classe(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Classe::class);
|
||||
}
|
||||
|
||||
/** @return BelongsTo<Eleve, $this> */
|
||||
public function eleve(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Eleve::class);
|
||||
|
|
@ -45,6 +47,7 @@ class DemandeInscription extends Model
|
|||
return hash('sha256', $jeton);
|
||||
}
|
||||
|
||||
/** @return Builder<self> */
|
||||
public function prunable(): Builder
|
||||
{
|
||||
return static::where('created_at', '<', now()->subHour());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue