title: Laravel - Show error on the same page if login credentials are wrong
body: <p>I am new to Laravel and i am working on login page in which i want throw error below input tags if login credentials are wrong. I have written some code and everything is working fine but errors are not showing.</p>
  
  <p>Have a look at what I have done.</p>
  
  <p>In Controller:</p>
  
  <pre><code>public function login(Request $req) {
  
      $email = $req-&gt;input('email');
  
      $password = $req-&gt;input('password');
  
      $checkLogin = DB::table('admin')-&gt;where(['email'=&gt;$email,'password'=&gt;$password])-&gt;get();
  
      if(count($checkLogin) &gt; 0) {
          echo "Login Successfull";
      }
      else {
          // echo "Login Failed!";
          return Redirect::route('admin-login')-&gt;with();
      }
  }
  </code></pre>
  
  <p>In View:</p>
  
  <pre><code>&lt;input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required autofocus&gt;
  
  @if ($errors-&gt;has('email'))
  
  &lt;span class="help-block"&gt;
  
  &lt;strong&gt;{{ $errors-&gt;first('email') }}&lt;/strong&gt;
  
  &lt;/span&gt;
  
  @endif
  </code></pre>
  
  <p>In Route:</p>
  
  <pre><code>Route::post('admin-login-result','AdminLoginController@login')-&gt;name('admin-log');
  </code></pre>
  
  <p>Thanks</p>