I use a common httpRequest to login, so I could use Redirect::intended(); to lead the user to a url before them being lead to the login page. That all works we
Redirect::intended();
In Laravel 5.7:
$url = redirect()->intended()->getTargetUrl();