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

saqueib's avatar

Is Laravel 5.1 Authorization is enough to handle Multiple roles of user

I am checking the docs of L 5.1 http://laravel.com/docs/5.1/authorization but there is no example regarding user roles. or its not supported out of the box.

If anyone can show me how to manage roles, like user, subscriber, admin etc. Whats the database table structure should we use since its not mentioned in L 5.1 Authorization doc.

Please help me with these

  1. Please suggest any package which does role management and authorization.
  2. Any package to manage tags system
0 likes
6 replies
davorminchorov's avatar
Level 53

The Laravel 5.1 Authorization does not have roles out of the box so you have to either create it yourself or use a package.

As for packages, kodeine/laravel-acl, Zizaco/entrust, romanbican/roles are some of those I know.

The database structure for users and roles should be many to many. A user can have many roles and you have more control over the roles.

2 likes
thomaskim's avatar

@saqueib I believe all packages conflict with the authorizable trait because the traits have a conflicting can() method. It's an easy fix, but just giving you a heads up. Also, yes, it's a nice package. If you like it, go ahead and try it out.

saqueib's avatar

I am going to try first to implement roles on my own, as i can see the permission part is already there in 5.1 Authorization only roles need to be created. I think it will be lot easier to maintain in long term.

If nothing workout there is always https://github.com/romanbican/roles package.

Please or to participate in this conversation.