Laravel 5 - After login redirect back to previous page

前端 未结 13 2343
广开言路
广开言路 2020-11-30 04:41

I have a page with a some content on it and a comments section. Comments can only be left by users who are signed in so I have added a login form to the page for users to si

13条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 05:03

    Please use redirect()->intended() instead in Laravel 5.1

    You can also see more about it here: http://laravel.com/docs/5.1/authentication

提交回复
热议问题