User Roles & Permissions for Laravel 5.2
This Package glues together laravel-permission and laravel-authorize to be one package giving you all the features and a simple install command to easily get started.
More details here:
composer require askedio/laravel5-rbac:dev-master
'providers' => [
Askedio\Laravel5RBAC\Providers\GenericServiceProvider::class,
...
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => Askedio\Laravel5RBAC\User::class,
],
...
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"
php artisan make:auth
php artisan migrate
php artisan user:create
php artisan serv
Route::get('dashboard', [
'middleware'=> ['web','can:admin'],
'uses' => 'HomeController@index',
]);