title: Laravel 8 gates not working with Auth::guard
body: <p>Hey I am developing a project where I have roles and permissions for users and I am trying to protect my routes with the help of middleware by defining Gates but it's showing me <code>403| Not Authorized</code>. I can't understand what the actual problem is?</p>
  <p>Into Category Controller</p>
  <pre><code>public function addcategory(AdminsRole $adminsroles){
  
     return view('add-category');
  
  }
  </code></pre>
  <p>Into Routes</p>
  <pre><code>Route::get('/add-category', [CategoryController::class, 'addcategory'])-&gt;middleware('can:add-category')-&gt;name('addcategory');
  
  </code></pre>
  <p>Into AuthServiceProvider.php</p>
  <pre><code>$admin = Auth::guard('admin');
  
  Gate::define('add-category', function ($admin, AdminsRole $adminsroles) {
  
      if($admin-&gt;user()-&gt;u_type != 'superadmin'){
  
          $adminRolescount = $adminsroles::where([
              ['admin_id', '=', $admin-&gt;user()-&gt;id],
              ['module', '=', 'categories'],
              ['add_access', '=', '1'],
          ])-&gt;count();
          return $adminRolescount;
  
      }else{
  
          return $adminRolescount = 1;
  
      } 
  
  });
  </code></pre>