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

josegdamians's avatar

Login with user and roles

Hi, I am using laravel 6 with the login the php artisan make:auth, the problem is how can I get the user with their roles in the query or if I can modify it, thanks.

0 likes
5 replies
jlrdw's avatar

You need to also study the chapter on authorization.

RBAC is a steep learning curve it will take a little time to learn this stuff.

You either set up a related role table, or have the role in the user table, but that's up to you.

Please or to participate in this conversation.