What happened to Laravel's redirectTo() method?

后端 未结 4 847
悲哀的现实
悲哀的现实 2021-02-07 12:21

We can override this property to redirect users after login in LoginController:

protected $redirectTo = \'/home\';

And here is the statement fr

4条回答
  •  失恋的感觉
    2021-02-07 13:07

    I think the issue comes from the web.php routes. I problem went away after I set the default '/' route to point to the login page.

    Route::get('/', function () {
        return redirect(route('login'));
    });
    

提交回复
热议问题