Skip to content
Discussion options

You must be logged in to vote

I redirect to home instead of redirecting to /agenda, to avoid fixing this later when the home route changes where it is redirecting.

I think this is the actual problem. A redirect usually doesn't persists this kind of session data and has never had in Laravel I believe. You should target the correct route to which you want to redirect.

Your PR could also impose a breaking change. In some situations people might not expect certain session data to still be present after a redirect. There could be various use cases why this isn't wanted to I believe it isn't wise to change this behavior.

About Graham's remark: I do agree that the hasSession method would prevent the breakage so I don't thi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rodrigopedra
Comment options

Answer selected by rodrigopedra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants