Authentication: All users can access Filament
Hello, guys. I have two applications: client(the website) and api with Filament.
I am using Laravel Sanctum for register/login only to the website not in the admin panel but as I saw, all the users created from the website can also access the Filament Admin Panel. How can I allow only the filament user(or specific user ) to access the admin panel?
I say something like this, I put it in the User Model but it's not working
'public function isFilamentAdmin()
{
return $this->email === 'dan@danharrin.com';
}'
I am using Laravel Sanctum for register/login only to the website not in the admin panel but as I saw, all the users created from the website can also access the Filament Admin Panel. How can I allow only the filament user(or specific user ) to access the admin panel?
I say something like this, I put it in the User Model but it's not working
'public function isFilamentAdmin()
{
return $this->email === 'dan@danharrin.com';
}'