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

mrkarma4ya's avatar

What's a good way to learn user roles and permissions in Laravel?

I read that there are build in roles in Laravel, but can't find it in the documentation for 6.x

Should I try to learn it from scratch or use a package?

Also, what are some good resources for learning these?

0 likes
2 replies
Rohrig's avatar
Rohrig
Best Answer
Level 6

I think by far the package from Spatie is the most widely used in the Laravel community.

https://docs.spatie.be/laravel-permission/v3/basic-usage/basic-usage/#

You can of course use the package if you want an easy way to implement Roles and Permissions.

Also, if you're mainly focused on learning, I know of no better substitute than looking through well written, well organized , well documented code, which that package offers.

Scooby's avatar

I'm pretty much in the same boat as you right now and I found the following Laracast to be extremely helpful. The Spatie package is even heavily based off this. Must have a subscription though but it's worth it!

https://laracasts.com/series/whats-new-in-laravel-5-1/episodes/16

I tried it out using Laravel 6.x as well and there were minimal differences that needed to be updated.

Please or to participate in this conversation.