Permissions Usage

View Permissions

The usage is easy, inside the panel, you will see a Permissions List button, click it, and then you'll be seeing a list of all permissions. Here you can navigate to manage them.

Authorize Users

To determine if user has a permission, you can check it simply as following code:

if (\Laralum\Users\Models\User::findOrFail(Auth::id())->hasPermission('permission.slug')) {
    // User has permission 'permission.slug'

More info about use it in Laralum Users Documentation

Did you know?

Laralum was created by two students of the Polytechnic University of Catalonia.


Please consider donating if you liked the project, we currently have no funding and we're spending a lot of time maintaining and developing this project.

The creators

Èrik Campobadal Forés

Aitor Riba Archilla

Major Contributors

Krishan König


Snow McFox