title: Use Laravel 4 Auth with custom table name
body: <p>I am creating a new laravel 4 backend based on an existing database. I have then a table named 'FormMembers' that contains email and passwords for my members.</p>
  
  <p>I would like to use Auth:: functions like :</p>
  
  <pre><code>$credentials = array(
      'sEmail' =&gt; Input::get('email'),
      'sPassword' =&gt; Input::get('password')
  );
  
  if (Auth::attempt($credentials)) {
      return Response::json(Auth::user());
  } else {
      return Response::json(array('flash' =&gt; 'invalid password or email.'), 500);
  }
  </code></pre>
  
  <p>So I changed the table field in <strong>auth.php</strong> from 'users' to 'FormMembers' and did the same to the Users model. But when calling Auth::user() I got the error :</p>
  
  <pre><code>{"error":{"type":"ErrorException","message":"Undefined index: password","file":"\/home\/www\/accred\/web\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/EloquentUserProvider.php","line":75}}
  </code></pre>
  
  <p>Do you have any idea how I could manage it?
  Thanks</p>