New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

s00d/permissions

Laravel 5 package for handling user roles and permissions.
10

Larablocks Analysis

s00d/permissions has no release yet to check Laravel compatibility against.

Recommendation checks

Use with care

Use with care: meets 0 of 3 checks.

  • No dated releases
  • 0 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require s00d/permissions:dev-master
PHP:>=5.5.9
License:MIT
Last Updated:Dec 4, 2015
Links: GitHub  ·  Packagist
Maintainer: s00d

Permissions

Tiny Laravel 5 package for handling user roles and permissions.

Installation

Add the following to the require key of your composer.json file:

"s00d/permissions": "dev-master"

Run $ composer update.

Navigate to your config/app.php file and add 's00d\Permissions\PermissionsServiceProvider' to the $providers array.

Create the tables by running $ php artisan migrate package="s00d/permissions". Ensure that your users table exists first.

Navigate to your models/User.php file and add the s00d\Permissions\Can trait below the class decloration line:

class User extends Eloquent implements UserInterface, RemindableInterface {
    use s00d\Permissions\Can;

Usage

Create a new role:

$role = new \s00d\Permissions\Role();
$role->name = 'Administrator';
$role->save();

Create a new permission:

$permission = new \s00d\Permissions\Permission();
$permission->name = 'read_articles';
$permission->display_name ='Can read articles';
$permission->save();

Attach the permission to the role:

$role->allow($permission);

Create a user:

$user = new User;
$user->role_id = 1;
$user->save();

And you're set! To check if a user has a permission:

$user = User::find(1);

if ($user->can('read_articles'))
    echo 'The user with the ID of "1" can read articles';

To check if the current authenticated user has a permission:

if (Auth::user()->can('read_articles'))
    echo 'The current authenticated user can read articles';

Alternatives to s00d/permissions

kodeine/laravel-acl

Light-weight role-based permissions for Laravel 5 built in Auth system.

368,467 774
eneadm/ladder

Feather light permissions for Laravel.

28,666 261
nigelheap/roles

Powerful package for handling roles and permissions in Laravel 5.3 and 5.6

3,281 0