netcore
411
6
Laravel

Multi auth from single table

Posted 3 years ago by netcore

Hello. Is this possible to create multiple authentications from single user tabe?

For example, i have users table and it have column called level. If level is 1 user is admin, if 2, then client.

I need to create option to log in from two user accounts at the same time. For example, i have logged in from my admin account (/admin/auth/login) and i go to /client/auth/login and i log in from client profile. I am successfully logged in, but my admin session is no longer active. How can i fix this?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.