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

xtremephp's avatar

Authentication with roles

I need some guidance on how to create a small authentication system in laravel 5.5.

On specific I need something like this:

1- My application starts with a login form as a home page.

2- Validate e-mail and password and respond with ajax in case of errors.

3- That the system has a system of roles. Each user has to be linked to a role.

Please, if someone could help me. I do not need the application to contain links to register new users or recover password. I found the Sentinel package, but I would really like to do all this without using third-party packages. Thank you very much atheist.

0 likes
2 replies
mboldrick's avatar

Hi @XTREMEPHP.

I have observed that Spatie's Laravel Permission and Joseph Silber's Bouncer are the most popular, current solutions. Both Spatie and Joseph, and their packages, enjoy good reputations. They provide more than you asked for, but so does Sentinel. You can remove the registration route and use just the parts you need.

I hope that helps.

Please or to participate in this conversation.