search

Home  >  Q&A  >  body text

php - Laravel returns to the previous login page after logging in

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

代言代言2806 days ago1564

reply all(5)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-07-07 10:37:15

    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

    reply
    0
  • 某草草

    某草草2017-07-07 10:37:15

    HTTP referer

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-07-07 10:37:15

    Pass the previous URL and jump back after logging in

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-07-07 10:37:15

    Can be achieved by passing parameters via Url

    reply
    0
  • 天蓬老师

    天蓬老师2017-07-07 10:37:15

    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

    reply
    0
  • Cancelreply