Aug 4, 2022
0
Level 1
Change how roles works in my project
Hey, I'm trying to make it possible to have 2 roles. I got a server-side API and admin panel on laravel/nova, which is currently in production. I have a users table(MySQL) and I have a role field that contains one string('Admin' or 'Client' etc) And it's possible to be only one role at a time.
I tried using the Spatie roles package, but my problem is that I need to move all my production users to the new table created by Spatie, which is inefficient.
is there a good solution you know that will make it easier and faster to implement?
Please or to participate in this conversation.