title: Laravel: How can I change the default Auth Password field name?
body: <p>I am currently working on my first laravel project and I am facing a problem.</p>
  <p>If you have experience with laravel you probably know that by calling <code>php artisan make:auth</code> you will get a predefined mechanism that handles login and registration.</p>
  <p>This mechanism is set to understand a couple of commonly used words in order to automate the whole procedure.</p>
  <p>The problem that occurs in my case is that I am using oracle db and it won't let me have a table column with the name of <code>password</code> because its a system keyword and it throws errors when trying to insert a user.</p>
  <p>So far, I have tried to change my <code>password</code> column to <code>passwd</code> and it worked in my registration form as expected. The User row was successfully inserted and my page was redirected to /home.</p>
  <p><a href="https://i.stack.imgur.com/LdZQK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LdZQK.png" alt="Register" /></a></p>
  <p><a href="https://i.stack.imgur.com/89aTR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/89aTR.png" alt="Success" /></a></p>
  <p>But when I try to logout and then relogin, I get this error telling me that my credentials are not correct:</p>
  <p><a href="https://i.stack.imgur.com/GEFR8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GEFR8.png" alt="enter image description here" /></a></p>
  <p>As for my code, I have changed my <code>RegisterController.php</code> so that it takes username instead of email</p>
  <pre><code>protected function validator(array $data)
  {
      return Validator::make($data, [
          'username' =&gt; 'required|max:50|unique:ECON_USERS',
          'passwd' =&gt; 'required|min:6|confirmed',
      ]);
  }
  
  protected function create(array $data)
  {
      return User::create([
          'username'   =&gt; $data['username'],
          'passwd'     =&gt; bcrypt($data['passwd'])
      ]);
  }
  </code></pre>
  <p>The User $fillable</p>
  <pre><code>protected $fillable = [
      'username', 'passwd'
  ];
  </code></pre>
  <p>I am guessing that Auth is trying to authenticate with <code>email</code> and not <code>username</code> or that Auth is searching for <code>password</code> and not <code>passwd</code>.</p>