Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

guyhguy's avatar

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?

0 likes
0 replies

Please or to participate in this conversation.