title: auth attempt failing in Laravel 5.4
body: <p>I have some post about auth attempt failure but my case seems to be different. Still in dev phase so my password is in plain text. I try to login but i keep getting false and so redirected back to login page. </p>
  
  <p>The error message says username/password does not match but dd reveals that both email and password are correct. </p>
  
  <p>What could be responsible for this failure? PS: it's my first time working with laravel</p>
  
  <p>web.php</p>
  
  <pre><code>Route::post('/login', 'AuthController@authenticate');
  Route::get('/', 'PostController@index');
  </code></pre>
  
  <p>AuthController</p>
  
  <pre><code>public function auth()
  {
      //dd($request);
  
      // attempt to login the user
      if (! auth()-&gt;attempt(request(['email', 'password']))) {
  
          return back()-&gt;withErrors([
              'message' =&gt; 'Username/Password does not macth'
          ]);
      }
  
      return redirect('/');
  }
  </code></pre>
  
  <p>PostController</p>
  
  <pre><code>public function index()
  {
      $posts = Post::latest()-&gt;limit(3)-&gt;get();
  
      return view('post.index', compact('posts'));
  }
  </code></pre>