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

jinsonjose's avatar

laravel roles and permission

in laravel 6 which one is the best way for managing roles and permission can you suggest me the best way? in my search i found that spatie if i use this package any dis advantages can you suggest me the better way for doing this?

0 likes
3 replies
bobbybouwmann's avatar

What disadvantage did you find? We can't help you if I don't know what you're missing.

In general, Laravel offers this out of the box using Policies and Gates.

Documentation: https://laravel.com/docs/6.x/authorization

Using a package like the Spatie one makes things a bit easier and offer extra support as well. It just depends on your needs.

jinsonjose's avatar

thanks dude for the replay,

actually first time i using spatie that why i take an opinion about to use the package actually i didnt find any disadvantages! i know in this community , so many using this so that reason i ask an opinion about spatie

thanks for your replay

bobbybouwmann's avatar

Yeah, the spatie package is pretty good because it also comes with the database integration. This way you don't have to do anything yourself for that ;)

I would say: "Go for it !" :D

Please or to participate in this conversation.