How to return to the previous login page after logging in to laravel?
I can’t use the following methods
return Redirect::intended('/');
My method is to submit POST data to the controller message message board, and then determine whether to log in and return to the login page
I want to return to the current message board page after logging in
Remember that laravel has a flash memory function, which is to lose the session for the first time and then call it again, and release it directly after use next time. Laravel has middleware that should have this function. I haven’t used it for a long time. I can only recall it
HTTP referer
Pass the previous URL and jump back after logging in
Can be achieved by passing parameters via Url
Holy shit,
Coincidentally
, I just answered the same question as you yesterday,The same thing
After logging in, jump to the page before logging in