F
Filament16mo ago
Yagamii

Login

I want to add a Customer Model and an Admin Model. How can I authenticate each of the models differently.
8 Replies
Salah Kanjo
Salah Kanjo16mo ago
@Yagamii by using a panel for each one.
Yagamii
YagamiiOP16mo ago
yes, I have already made a panel for customers, but its still using the User model class for authentication.
Salah Kanjo
Salah Kanjo16mo ago
Change the auth guard in the panel
Yagamii
YagamiiOP16mo ago
I included the authGuard("admin") to the AdminPanelProvider. now it shows this error.
No description
Salah Kanjo
Salah Kanjo16mo ago
Make sure to add the admin auth to auth.php config file
Yagamii
YagamiiOP16mo ago
I added it next to the user with different a model, it still shows the same error. hey man, it works now, I dont know but I think there was something wrong on how I putted the guard on auth. thank youu
Salah Kanjo
Salah Kanjo16mo ago
@Yagamii any time! You can mark the discussion as solved

Did you find this page helpful?