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.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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.
Please or to participate in this conversation.