laravel redirect if logged in

后端 未结 5 1829
孤独总比滥情好
孤独总比滥情好 2021-01-04 00:35

i am using laravel 5.1.8. i am making a login/registration system. i made a controller named AdminController and protect it with middleware.

but i am using laravel\'

5条回答
  •  [愿得一人]
    2021-01-04 01:24

    when a user is successfully authenticated, they will be redirected to the /home URI, which you will need to register a route to handle. You can customize the post-authentication redirect location by defining a redirectPath property on the AuthController:

    protected $redirectPath = '/dashboard';

提交回复
热议问题