/laravel-permission

Associate users with roles and permissions with many company

Primary LanguagePHPMIT LicenseMIT

Associate users with permissions and roles

fork spatie/laravel-permission

desc

with many company

What It Does

This package allows you to manage user permissions and roles in a database.

Once installed you can do stuff like this:

// Adding permissions to a user
$user->givePermissionTo('edit articles');

// Adding permissions via a role
$user->assignRole('writer');

$role->givePermissionTo('edit articles');
$user->can('edit articles');

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.