change user behaviour

This commit is contained in:
2026-08-12 17:56:52 +02:00
parent 4aa1a77e1d
commit f263220b81
+6 -1
View File
@@ -12,7 +12,7 @@ use Illuminate\Notifications\Notifiable;
#[Fillable(['name', 'email', 'password'])]
#[Hidden(['password', 'remember_token'])]
class User extends Authenticatable
class User extends Authenticatable implements FilamentUser
{
/** @use HasFactory<UserFactory> */
use HasFactory, Notifiable;
@@ -29,4 +29,9 @@ class User extends Authenticatable
'password' => 'hashed',
];
}
public function canAccessFilament(): bool
{
return true;
}
}