title: Laravel 5.6 - Using built in Auth on custom table - Not authenticating user/password
body: <p>I am struggling with using Laravel's built-in auth against an existing 'Users' table that already contains username and password.  The column names are 'UserEmail' and 'UserPassword'.  To test it out, I used tinker to create an entry, hashing the password as:</p>
  
  <pre><code>$user-&gt;UserPassword=Hash::make('1234');
  </code></pre>
  
  <p>When trying to log in using <code>Auth::attempt</code>, authentication keeps failing.  To debug, I started adding <code>var_dump</code> and even do a comparison of the password request that comes through against the hashed password in the database and it matches.  So I am not sure why the <code>Auth::attempt</code> fails to authenticate it:</p>
  
  <p>This is the function I have in my LoginController.php:</p>
  
  <pre><code>public function login(Request $request)
  {
      // validate the form data
      $this-&gt;validate($request, [
          'UserEmail' =&gt; 'required',
          'UserPassword' =&gt; 'required'
      ]);
  
      var_dump($request-&gt;UserEmail);
      var_dump($request-&gt;UserPassword);
      $user = App\FarmUser::where('UserEmail', $request-&gt;UserEmail)-&gt;first();
      var_dump($user-&gt;UserPassword);
      $authenticated = Hash::check($request-&gt;UserPassword, $user-&gt;UserPassword);
      var_dump($authenticated);
  
      // attempt to log the user in
      if (Auth::attempt(['UserEmail' =&gt; $request-&gt;UserEmail, 'UserPassword' =&gt; $request-&gt;UserPassword], $request-&gt;remember)) {
          // if successful, then redirect to their intended location
          Debugbar::addMessage('successfully authenticated');
          return redirect()-&gt;intended($redirectTo);   
      }
  
      // if unsuccessful, then redirect back to login with the form data
      Debugbar::addMessage('authentication failed');
      //return redirect()-&gt;back();
  }
  </code></pre>
  
  <p>When I try to log in, I see the correct UserEmail, UserPassword, and the hash check also returns true.  However, when I call the <code>Auth::attempt</code>, it does not successfully authenticate and redirects back.  Any idea why I can't get the <code>Auth::attempt</code> to authenticate properly? </p>
  
  <p>When I log in, this is the output generated from those var dumps:</p>
  
  <pre><code>string(20) "user@test.com" string(8) "1234" string(60) "&lt;hash&gt;" bool(true)
  </code></pre>
  
  <p>Here is what tinker returns for this App\FarmUser model:</p>
  
  <pre><code>&gt;&gt;&gt; $user = App\FarmUser::where('UserLogin', 'testuser')-&gt;first();
  =&gt; App\FarmUser {#809
       ID: 1,
       UserLogin: "testuser",
       password: "&lt;hash&gt;",
       Active: "Yes",
       UserEmail: "user@test.com",
       Created: "2018-03-20 15:09:24",
       CreatedByID: null,
       Modified: null,
       ModifiedByID: null,
       created_at: "2018-03-20 19:09:09",
       updated_at: "2018-03-20 19:09:09",
     }
  </code></pre>