without any external packages nor adding extra tables or even extra fields in users table
This is like you want to code but don't want to write the code. Without creating a proper table structure how can you maintain user-wise roles?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, I am working in an application which have users table. With the same(users) I've created the default auth and set it as middleware to specific routes. I need to further assign roles and permissions to different users(like one can do anything, another one can only create and update - no delete). I need this to be done without any external packages nor adding extra tables or even extra fields in users table. Is there any method to make it?
Please or to participate in this conversation.