title: Laravel manual authentication: Auth::attempt always false
body: <p>i am using laravel manual authentication system.Submitting the form redirects to this route shown below.And in the authenticate ()  function the name and password never matches to which i stored earlier. i.e. <code>Auth::attempt</code> is always false.</p>
  
  <pre><code> Route::post('/logintest', 'mycontroller@authenticate');
      Route::get('/home', ['middleware' =&gt; 'auth', function() {
    echo "home page";});
  }]);
  </code></pre>
  
  <p>authenticate function:</p>
  
  <pre><code>public function authenticate(Request $request)
           {
              $input=$request-&gt;all();
              $password=$input['password'];
              $name=$input['name'];
  
              if (Auth::attempt(['Name' =&gt; $name, 'Password' =&gt; $password]) ){
              return redirect()-&gt;intended('/home');
          }   else 
            {
                  return redirect('/login')-&gt;with('message','Error logging in!');
              }
          }
  </code></pre>
  
  <p>I've registered the user this way. the password is hashed using bcrypt(). function. but in authenticate() function i am comparing with plain password. i somewhere read <code>Auth</code> automatically handles it. OR Is there something should i  change in config/auth.php because i've used name to authenticate instead of username? </p>
  
  <pre><code>public function register(Request $request)
  {
      $input=$request-&gt;all();
      $password=bcrypt($input['password']);
      $name=$input['name'];
      $insert= User::insert(['Name'=&gt;$name,'Password'=&gt;$password]);
      return redirect('/login')
              -&gt;with('message','successfully Registered.');
  }
  </code></pre>