laravel sentry redirect::intended not working

后端 未结 4 733
走了就别回头了
走了就别回头了 2021-02-06 09:45

I\'m trying to get the sentry package set up in my app correctly.

I can log a user in and out and protect routes but I can\'t seem to get the redirect::intended

4条回答
  •  我寻月下人不归
    2021-02-06 10:29

    In your filters.php make sure to use:

     return Redirect::guest('login');
    

    instead of

     return Redirect::route('login');
    

    The guest function will set the correct session variables for intended() to work properly.

提交回复
热议问题