title: Redirect after authentication in Laravel 5
body: <p>I would like to redirect users back to the page they were viewing before the login page after successful login in Laravel 5. Currently if the user writes a wrong username/password he is redirected to the login page again, with error displayed, and I would like to keep it that way. Also I want this to work when user clicks on login button on a page and also in the situation when user is redirected to login page automatically. </p>
  
  <p>Seems to me that</p>
  
  <pre><code>protected $redirectTo = "/";
  </code></pre>
  
  <p>is the key thing here, but I don't know how to get it to "redirect to last page which isn't the login page". Any help is appreciated. </p>