title: Laravel 5.6 Login Attempt Fails - Method RequestGuard::attempt does not exist is returned on Login Submit
body: <p>I had implemented multi-auth for my application and it was working fine until it just stopped.I've scoured the internet for a solution but to no avail. So I do have  Admin Login Controller and the default Laravel Login controller which uses make:auth and implements authenticable for users. My admin login is working fine but the user login fails and returns this</p>
  
  <pre><code>BadMethodCallException Method Illuminate\Auth\RequestGuard::attempt does not exist.
  </code></pre>
  
  <p>The same thing happens when I try to register a user but this time it returns it returns </p>
  
  <pre><code>BadMethodCallException
  Method Illuminate\Auth\RequestGuard::login does not exist.
  </code></pre>
  
  <p>Despite the error the user registration passes and the fields are actually populated in the users table from the registration form. Since I'm using the default auth I'm expecting it to automatically login , and i guess this is where the problem arises on the attemp method.</p>
  
  <p>It's imperative to note that I am using Passport on the user Model for another module.</p>
  
  <p>Below is how my Login Controller looks like</p>
  
  <pre><code>namespace App\Http\Controllers\Auth;
  
  use App\Http\Controllers\Controller;
  use Illuminate\Foundation\Auth\AuthenticatesUsers;
  
  class LoginController extends Controller
  {
      /*
      |--------------------------------------------------------------------------
      | Login Controller
      |--------------------------------------------------------------------------
      |
      | This controller handles authenticating users for the application and
      | redirecting them to your home screen. The controller uses a trait
      | to conveniently provide its functionality to your applications.
      |
      */
  
      use AuthenticatesUsers;
  
      /**
       * Where to redirect users after login.
       *
       * @var string
       */
      protected $redirectTo = '/';
  
      /**
       * Create a new controller instance.
       *
       * @return void
       */
      public function __construct()
      {
          $this-&gt;middleware('guest')-&gt;except('logout');
      }
  
  }
  </code></pre>
  
  <p>And my Admin Login Controller </p>
  
  <pre><code>namespace App\Http\Controllers\Admin;
  
  use App\Http\Controllers\Controller;
  use Illuminate\Foundation\Auth\AuthenticatesUsers;
  use Illuminate\Http\Request;
  use Illuminate\Support\Facades\Auth;
  
  class LoginController extends Controller
  {
      /*
      |--------------------------------------------------------------------------
      | Login Controller
      |--------------------------------------------------------------------------
      |
      | This controller handles authenticating users for the application and
      | redirecting them to your home screen. The controller uses a trait
      | to conveniently provide its functionality to your applications.
      |
      */
      use AuthenticatesUsers;
      /**
       * Where to redirect users after login.
       *
       * @var string
       */
      protected $redirectTo = 'admin/dashboard';
      /**
       * Create a new controller instance.
       *
       * @return void
       */
      public function __construct()
      {
          $this-&gt;middleware('guest:admin', ['except' =&gt; 'logout']);
      }
      /**
       * Show the application's login form.
       *
       * @return \Illuminate\Http\Response
       */
      public function showLoginForm()
      {
          return view('admin.admin-login');
      }
  
      /**
       * Get the guard to be used during authentication.
       *
       * @param Request $request
       * @return \Illuminate\Contracts\Auth\StatefulGuard
       */
      public function login(Request $request)
      {
          // Validate the form data
          $this-&gt;validate($request, [
              'email' =&gt; 'required|email',
              'password' =&gt; 'required|min:8'
          ]);
          // Attempt to log the user in
          if (Auth::guard('admin')-&gt;attempt(['email' =&gt; $request-&gt;email, 'password' =&gt; $request-&gt;password])) {
              // if successful, then redirect to their intended location
              return redirect()-&gt;intended(route('admin.dashboard'));
          }
          // if unsuccessful, then redirect back to the login with the form data
          return redirect()-&gt;back()-&gt;with('flash_message_error', 'Invalid Access: Please Login With Your Credentials.');
      }
      public function logout()
      {
          Auth::guard('admin')-&gt;logout();
          return redirect('admin')-&gt;with('flash_message_error', 'Successfully Logged Out');;
      }
  
  }
  </code></pre>
  
  <p>This is my guard  config/auth.php </p>
  
  <pre><code>'guards' =&gt; [
          'web' =&gt; [
              'driver' =&gt; 'session',
              'provider' =&gt; 'users',
          ],
  
          'api' =&gt; [
              'driver' =&gt; 'passport',
              'provider' =&gt; 'users',
          ],
          'admin' =&gt; [
              'driver' =&gt; 'session',
              'provider' =&gt; 'admins',
          ],
          'admin-api' =&gt; [
              'driver' =&gt; 'passport',
              'provider' =&gt; 'admins',
          ],
      ],
  
      /*
      |--------------------------------------------------------------------------
      | User Providers
      |--------------------------------------------------------------------------
      |
      | All authentication drivers have a user provider. This defines how the
      | users are actually retrieved out of your database or other storage
      | mechanisms used by this application to persist your user's data.
      |
      | If you have multiple user tables or models you may configure multiple
      | sources which represent each model / table. These sources may then
      | be assigned to any extra authentication guards you have defined.
      |
      | Supported: "database", "eloquent"
      |
      */
  
      'providers' =&gt; [
          'users' =&gt; [
              'driver' =&gt; 'eloquent',
              'model' =&gt; App\User::class,
          ],
          'admins' =&gt; [
              'driver' =&gt; 'eloquent',
              'model' =&gt; App\Admin::class,
          ],
  
          // 'users' =&gt; [
          //     'driver' =&gt; 'database',
          //     'table' =&gt; 'users',
          // ],
      ],
  
      /*
      |--------------------------------------------------------------------------
      | Resetting Passwords
      |--------------------------------------------------------------------------
      |
      | You may specify multiple password reset configurations if you have more
      | than one user table or model in the application and you want to have
      | separate password reset settings based on the specific user types.
      |
      | The expire time is the number of minutes that the reset token should be
      | considered valid. This security feature keeps tokens short-lived so
      | they have less time to be guessed. You may change this as needed.
      |
      */
  
      'passwords' =&gt; [
          'users' =&gt; [
              'provider' =&gt; 'users',
              'table' =&gt; 'password_resets',
              'expire' =&gt; 60,
          ],
          'admins' =&gt; [
              'provider' =&gt; 'admins',
              'table' =&gt; 'password_resets',
              'expire' =&gt; 15,
          ],
      ],
  
  ];
  </code></pre>
  
  <p>And finally below is my user Model </p>
  
  <pre><code>namespace App;
  
  use App\Modules\Event\Bookings;
  use Illuminate\Notifications\Notifiable;
  use Illuminate\Foundation\Auth\User as Authenticatable;
  use Laravel\Passport\HasApiTokens;
  use GrahamCampbell\Markdown\Facades\Markdown;
  
  /**
   * @method static find($user_id)
   * @method static count()
   */
  class User extends Authenticatable
  {
      use HasApiTokens, Notifiable;
  
      /**
       * The attributes that are mass assignable.
       *
       * @var array
       */
      protected $fillable = [
          'fname','lname', 'email','organization','phone_number', 'password',
      ];
  
      /**
       * The attributes that should be hidden for arrays.
       *
       * @var array
       */
      protected $hidden = [
          'password', 'remember_token',
  
      ];
  
      public function participant()
      {
          return $this-&gt;hasMany(Bookings::class);
      }
  
  
      public function posts()
      {
          return $this-&gt;hasMany(Posts::class, 'author_id');
      }
      public function gravatar()
      {
          $email = $this-&gt;email;
          $default = "https://upload.wikimedia.org/wikipedia/commons/thumb/5/50/User_icon-cp.svg/200px-User_icon-cp.svg.png";
          $size = 60;
  
          return "https://www.gravatar.com/avatar/" . md5( strtolower( trim( $email ) ) ) . "?d=" . urlencode( $default ) . "&amp;s=" . $size;
      }
          public function getRouteKeyName()
      {
          return 'slug';
      }
      public function getBioHtmlAttribute()
      {
          return $this-&gt;bio ? Markdown::convertToHtml(e($this-&gt;bio)) : NULL ;
  
      }
  
  }
  </code></pre>
  
  <p>Below is My Admin Model </p>
  
  <pre><code>namespace App;
  
  
  use Illuminate\Notifications\Notifiable;
  use Illuminate\Foundation\Auth\User as Authenticatable;
  
  /**
   * @method static find($user_id)
   */
  class Admin extends Authenticatable
  {
      use Notifiable;
  
      protected $guard = 'admin';
      /**
       * The attributes that are mass assignable.
       *
       * @var array
       */
      protected $fillable = [
          'name', 'email', 'password',
      ];
  
      /**
       * The attributes that should be hidden for arrays.
       *
       * @var array
       */
      protected $hidden = [
          'password', 'remember_token',
  
      ];
  
  
  }
  </code></pre>
  
  <p>I tried to use api as the default guard and it only worked temporarily and started to return the same error, I know attempt method only works on web middleware so what could be the problem? I've removed the vendor folder and reinstalled it using composer update still nothing.. just stuck.
  Would immensly appraciate the help.</p>