chore(models): annotations @property (Role, User) pour l'analyse statique

Permet a Larastan (PHPStan niveau 5) de resoudre $user->role->libelle.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-08 18:59:02 +02:00
parent 89b4107266
commit 4ffce393de
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -5,6 +5,10 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property string $libelle
*/
class Role extends Model
{
use HasFactory;