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

test_user69's avatar

Multiple user table laravel 11

Hello , I'm new in laravel . How to make 4 user table Super Admin, Admin, Staff and User in laravel 11 . I want to know how to config guards, middleware for api and phpfilment. Sorry for my English.

0 likes
4 replies
jlrdw's avatar

I suggest don't, have a login and then use authorization to determine what a user can or cannot do.

A API is token based (stateless), use token abilities.

1 like
Tray2's avatar

I agree with @jlrdw, there should only be a single users table. You need to either set up a roles and a role_user pivot, or a roles table, and add role_id, to the users table.

As for the other things you want to learn, a good start is to get a subscription here at Laracasts, it will give you access to just about everything you need to learn those things.

https://laracasts.com/path
2 likes
JackJones's avatar

I would recommend Spatie Permissions for any roles you need

1 like
puklipo's avatar

The same topic is repeated over and over again: "Never use multi-auth in Laravel."

1 like

Please or to participate in this conversation.