Skip to content

Jigsaw00/agmar-roles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agmar-roles

Download package using:

composer require agmar/role

copy migrations from vendor/agmar/role/migrations to migrations folder in your application folder run laravel migration

register the service provider:

Agmar\Role\AgmarRoleServiceProvider::class,

register the middleware in App\Http\Kernel.php:

'role'=>\Agmar\Role\Middleware\RoleMiddleware::class,

Add hasPermissionsTrait to your User model:

use Agmar\Role\Permissions\hasPermissionsTrait;

...and use it inside the user model

class User extends Authenticatable
{
    use hasPermissionsTrait;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages