I am new to Laravel 5 and trying to make a simple authentication page. My problem is i can logout properly after i click to logout link but if i click to back button of the
Try redirecting to a protected route with auth middleware:
return redirect('home');
so it will force redirect to the login page & the back button will not show the previous page
Using this <a href={{$_SERVER['HTTP_REFERER']}}>back</a> comes handy.
<a href={{$_SERVER['HTTP_REFERER']}}>back</a>