*/ protected $fillable = [ 'pays', 'villes', 'communes', 'departement_id', 'prenom', 'nom','name', 'date_naissance', 'sexe', 'statut', 'fonction', 'numero', 'contact_urgence', 'email', 'cv', 'cni', 'autres', 'email', 'password', ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'email_verified_at' => 'datetime', 'password' => 'hashed', 'date_naissance' => 'date', ]; public function canAccessPanel(Panel $panel): bool { // You may optionally implement your own logic here when a user has access to this panel. return true; } // Relation avec le modèle Departement public function departement() { return $this->belongsTo(Departement::class); } }