title: Laravel 5.5 Permissions - User does not have the right roles
body: <p>I'm trying to find a solution in a use case where the admin user does not have the assigned role. 
  In dashboard view it doesn't render the url for users, while if I directly access the dashboard/users, I get:</p>
  
  <p><code>Spatie \ Permission \ Exceptions \ UnauthorizedException</code> <code>user does not have the right roles</code></p>
  
  <p>app/Http/Kernel.php</p>
  
  <pre><code>    protected $routeMiddleware = [
       ....
      'role' =&gt; \Spatie\Permission\Middlewares\RoleMiddleware::class,
      'permission' =&gt; \Spatie\Permission\Middlewares\PermissionMiddleware::class,
  ];
  </code></pre>
  
  <p>routes/web.php</p>
  
  <pre><code>Route::group(
     ['middleware' =&gt; ['role:admin']],
      function () {
        Route::get('/dashboard/users', 'UsersController@index');
        Route::get('/dashboard/users/{id}', 'UsersController@edit');
        Route::patch('/dashboard/users/{id}', 'UsersController@update');
     }
  );
  </code></pre>
  
  <p>view/dashboard.blade.php</p>
  
  <pre><code>&lt;div class="panel-body"&gt;
    @hasrole('admin')
       &lt;li&gt;&lt;a href="/dashboard/users"&gt;Manage Users&lt;/a&gt;&lt;/li&gt;
    @endhasrole
  &lt;/div&gt;
  </code></pre>
  
  <p>I have successfully generated the default roles &amp; permission with</p>
  
  <p>Commands/GenerateRoles.php</p>
  
  <pre><code>    public function handle()
      {
      $this-&gt;info('Generating default roles and permissions...');
      $admin = User::create(
        [
          'name'     =&gt; 'administrator',
          'email'    =&gt; 'adm@mail.com',
          'password' =&gt; bcrypt('12345'),
        ]
      );
  
      // Create roles.
      $adminRole   = Role::create(['name' =&gt; 'admin']);
      $supportRole = Role::create(['name' =&gt; 'support']);
  
      $admin-&gt;assignRole('admin');
  
      // Create permissions.
      $userManagement = Permission::create(['name' =&gt; 'users management']);
      $deleteImages  = Permission::create(['name' =&gt; 'delete images']);
      $datasetStatus   = Permission::create(
        ['name' =&gt; 'change dataset building status']
      );
  
      $adminRole-&gt;givePermissionTo($userManagement);
      $deleteImages-&gt;syncRoles([$adminRole, $supportRole]);
      $datasetStatus-&gt;syncRoles([$adminRole, $supportRole]);
     }
  </code></pre>
  
  <p>What it could possibly goes wrong? Thanks for you time.</p>