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