*/ use HasFactory, Notifiable; /** * Get the attributes that should be cast. * * @return array */ public function canAccessPanel(Panel $panel): bool { return (bool) $this->is_staff; } protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', ]; } }