Login
I want to add a Customer Model and an Admin Model. How can I authenticate each of the models differently.
8 Replies
@Yagamii by using a panel for each one.
yes, I have already made a panel for customers, but its still using the User model class for authentication.
Change the auth guard in the panel
I included the authGuard("admin") to the AdminPanelProvider. now it shows this error.
Make sure to add the
admin
auth to auth.php
config fileI 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
@Yagamii any time!
You can mark the discussion as solved