php - Laravel returns to the previous login page after logging in
代言
代言 2017-07-07 10:35:15
0
5
1425

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

代言
代言

reply all(5)
伊谢尔伦

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

Peter_Zhu

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!