title: How to change / Custom password field name for Laravel 4 and Laravel 5 user authentication
body: <p>I would like to change password field in database when using Laravel authentication. I want my column in <code>users</code> table has name <code>passwd</code> and not <code>password</code>. I tried to run something like this:</p>
  
  <pre><code>Auth::attempt(array(
      'user_name' =&gt; 'admin',
      'passwd' =&gt; 'hardpass',
  ));
  </code></pre>
  
  <p>but it doesn't work. </p>
  
  <p>I also tried to add in <code>User</code> model the following function:</p>
  
  <pre><code>public function getAuthPassword() {
      return $this-&gt;passwd;
  }
  </code></pre>
  
  <p>but it also changes nothing. User is still not being authenticated. Is it possible in Laravel to change password field name in database ?</p>