Laravel 5.4 redirection to custom url after login

前端 未结 9 2187
悲哀的现实
悲哀的现实 2020-11-28 09:46

I am using Laravel Framework 5.4.10, and I am using the regular authentication that

php artisan make:auth

provides. I want to protect the

9条回答
  •  孤城傲影
    2020-11-28 10:25

    For newer versions of Laravel, please replace protected $redirectTo = RouteServiceProvider::HOME; with protected $redirectTo = '/newurl'; and replace newurl accordingly.

    Tested with Laravel version-6

提交回复
热议问题