F
Filament10mo 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 Kanjo10mo ago
@Yagamii by using a panel for each one.
Yagamii
Yagamii10mo ago
yes, I have already made a panel for customers, but its still using the User model class for authentication.
Salah Kanjo
Salah Kanjo10mo ago
Change the auth guard in the panel
Yagamii
Yagamii10mo ago
I included the authGuard("admin") to the AdminPanelProvider. now it shows this error.
No description
Salah Kanjo
Salah Kanjo10mo ago
Make sure to add the admin auth to auth.php config file
Yagamii
Yagamii10mo 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 Kanjo10mo ago
@Yagamii any time! You can mark the discussion as solved