If it was me, I'd keep it simple and not have an admins table. Just use users with an admin flag on it, or something like that.
May 2, 2024
4
Level 3
Signin users and admins on the same Laravel API
I have my Laravel API managing users and admin tables, a Nuxt frontend for users and a Nuxt backoffice for admins, the frontend website is under a different domain name.
Is it possible to signin both users and admins with Laravel Passport (oauth type, not password grant which is deprecated) ? If not, what would be a good alternative (maybe a mix between Passport and something else) ?
Please or to participate in this conversation.