title: Laravel - 'Auth guard [admin] is not defined.'
body: <ul>
  <li>This is a fresh copy of Laravel 5.6.</li>
  <li>using <a href="https://github.com/spatie/laravel-permission" rel="noreferrer">spatie laravel permissions.</a></li>
  </ul>
  
  <p>I have maybe altered something while dealing with permissions that could have altered the guard. I have no idea what since I can't see any git changes, maybe via the DB?</p>
  
  <p>At first I tried to tinker and give a specific user admin privileges with:
  <code>$role = Spatie\Permission\Models\Role::where('name', 'admin')-&gt;get()-&gt;first();</code> </p>
  
  <p>When that returned undefined, I checked <code>Auth::guard('admin')</code>, that returns undefined, so I understand that the issue has nothing to do with Spatie package.</p>
  
  <p>After looking in a few questions/answers here on stackoverflow, one of them being <code>config:clear</code> and <code>config:cache</code>, which didn't work and still getting undefined for Auth guard admin.</p>
  
  <p>Any other options I could take to get Auth admin?</p>
  
  <p>thanks</p>