'datetime', 'password' => 'hashed', // Laravel 10+ soporta casting a hashed ]; public function canAccessPanel(Panel $panel): bool { return $this->hasAnyRole(['Administrador', 'Super Admin']) || $this->hasPermissionTo('view_admin'); } /** * Get the roles associated with the user. */ public function roles(): BelongsToMany { return $this->belongsToMany(Role::class); } }