I want to ask that I want to create multiple auth in laravel 8 or 9.
I have 2 different tables:
Customer Staff I have 2 Login Forms:
Customer Login Form Staff Login Form I am Using Auth To Login Both Staff & Customer.
I Also Have a Model For Both Staff & Customer.
I want that at a time both customer and staff can log in.
But when the admin makes a login. And Then staff comes on the home page it gets data from auth and displays that data on the home page and shows that staff is logged in, but I want it to show the login and signup button instead of the staff profile. So staff can also log in as a customer on the website at the same time.
CodePudding user response:
for multiple authentications you have to use auth guard in Laravel.Larvel Multi auth example using Auth guard from scratch