*/ use HasFactory, Notifiable; /** * Vérifie si l'utilisateur est le Chef de Service. */ public function isChefService(): bool { return $this->role === 'chef_service'; } /** * Vérifie si l'utilisateur est un Administrateur Réseau. */ public function isAdminReseau(): bool { return $this->role === 'admin_reseau'; } /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', ]; } }