*/ use HasFactory, Notifiable; public function canAccessPanel(Panel $panel): bool { return $this->is_admin; } protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', 'is_admin' => 'boolean', ]; } }