Simple add trait to user model to use roles. Contains role middleware.
'providers' => [
...
Logobinder\Roles\RolesServiceProvider::class,
...
],
...
use \Logobinder\Roles\RolesTrait;
...
Route::group(['namespace' => 'Admin', 'middleware' => ['web', 'auth','role:admin'], 'prefix' => 'admin'], function () {
Route::resource('some', 'SomeController');
});
$role = Logobinder\Roles\Role::create(['name' => 'admin']);
$user = \App\User::create([
'name' => 'Administrator',
'email' => 'a.anyszek@gmail.com',
'password' => bcrypt('adminadmin'),
]);
$user->roles()->attach($role);