I am now using the default setup of laravel when the user was authenticated. What I have now is, if the user has been logged in and idle for a long time, then if the user go to a link or refresh the browser, the user redirects to a login page. What I want is to stay on the same page/url and just call the login page. I have a solution, but I think it is not the best one. Please see my code below:
profile.blade.php
@if(!Auth::check())
// Show the login form
@else
// Show profile
@endif
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2t2UdB7
via IFTTT
Aucun commentaire:
Enregistrer un commentaire