title: Laravel How Auth::attempt knows about Table
body: <p>I have two tables in my Database
  1: Items
  3: Users
  and trying to log in the user and it is working properly, but my question is that i have not mentioned that from which table it will fetch the data, but it is fetching from the desired table automatically? Is it a Feature of Laravel or am doing something wrong? 
  or i don't understand why this is happening? </p>
  
  <p>Form</p>
  
  <pre><code>{{ Form::open(array('class'=&gt; 'forming')) }}
  
      {{ Form::text('username',null,array( 'placeholder' =&gt; 'Username' ,'class' =&gt; 'insi')); }}&lt;br&gt;
      {{ Form::password('password',array('placeholder'=&gt;'Password', 'class'=&gt;'paswor')); }}&lt;br&gt;
      {{ Form::submit('SignIn!',array('class'=&gt; 'but-n')); }}
  
  {{ Form::close() }}
  </code></pre>
  
  <p>and the AuthController</p>
  
  <pre><code>class AuthController extends Controller{
  
          public function getLogin(){
              return View::make('login');
          }
  
          public function postLogin(){
              $rules = array('username'=&gt; 'required', 'password'=&gt;'required');
  
              $validator = Validator::make(Input::all(),$rules);
  
              if($validator-&gt;fails()){
                  return Redirect::route('login')
                      -&gt;withErrors($validator);
              }
  
              $auth = Auth::attempt(array(
                  'username' =&gt; Input::get('username'),
                  'password' =&gt; Input::get('password')
                  ), false);
              if(!$auth){
  
                  return Redirect::route('login')
                      -&gt;withErrors(array(
                          'Invalid'
                          ));
              }
  
              return Redirect::route('home');
  
          }
  }
  </code></pre>