somenet77's avatar

What is the best solution for multiple authentication ?

I am building an eCommerce system with API for my business but I have a little bit confused for multiple authentication whether I use the same users model for both admin and front login or make admins table with the new authentication system. I have a role-based user system for admin panel and simple user for the frontend (without role). Which is the best solution for this system?

0 likes
4 replies
jlafleur's avatar

IMO I would keep only one table and goes with Roles, Policies etc.

But your text talk about models logic and your question about multiple authentication. So I don't know if it's exactly what you want to know ?

somenet77's avatar

My question is i want to implement the multiple authentication using spatie role and permissions whether I used default user table for both frontend and backend or used multiple table user for frontnd and admin for backend.

jlafleur's avatar

So, still the same answer, keep it simple, one table to rule them all ;)

somenet77's avatar

I want best solution to manage multiple user type.

Please or to participate in this conversation.