title: Laravel Auth Attempt not working with Custom User Model
body: <p>I generated a different table to store users for my website. Name of the table is tblusers. I am registering new users with a controller method register(), in which i added this code</p>
  
  <pre><code>public function register(){
      return User::create([
          'User_Email' =&gt; 'test@example.com',
          'User_UserName' =&gt; 'test@example.com',
          'User_Password' =&gt; bcrypt('123'),
          'User_Address' =&gt; 'ABCD....',
          'User_IsActive' =&gt; 1,
          'User_FullName' =&gt; 'Burhan Ahmed',
          'User_AppID' =&gt; 1,
          'User_IsVerified' =&gt; 1
      ]);
  }
  </code></pre>
  
  <p>It adds above dummy data successfully in Database. Then i tried to login with above given credentials using below code:</p>
  
  <pre><code>dd(Auth::attempt(['User_UserName' =&gt; 'test@example.com', 'User_Password' =&gt; '123']));
  </code></pre>
  
  <p>But above statement always returns false, Why? Am i missing something. I tried to pass actual bcrypt code instead '123' in above array it returns the same result always. Below is my Model Class</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Notifications\Notifiable;
  use Illuminate\Foundation\Auth\User as Authenticatable;
  use Illuminate\Support\Facades\DB;
  
  //class User extends Authenticatable
  class User extends Authenticatable
  {
      use Notifiable;
      protected $table = 'tblusers';
      protected $primaryKey = 'User_ID';
      public $timestamps = false;
      /**
       * The attributes that are mass assignable.
       *
       * @var array
       */
      protected $fillable = [
          'User_UserName', 'User_Email', 'User_Password', 'User_Address', 'User_FullName', 'User_IsActive', 'User_IsVerified'
      ];
  
      /**
       * The attributes that should be hidden for arrays.
       *
       * @var array
       */
      protected $hidden = [
          'User_Password'
      ];
  }
  </code></pre>
  
  <p>I am using Laravel 5.4, i followed all the authentication steps but not matter what i pass it always return false.</p>