-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add redirect route configuration too allow setting of redirect location when triggered by middleware #63
Conversation
Add route key to config
add route to redirect
add route to log out middleware
Thank you for the contribution @joearcher! |
Another one point that not all apps has route named Then people might reconfigure it like this if they want to: 'redirect_url' => route('login'), |
Both of your points make perfect sense, I will amend this to default to a null config value fall back to current behaviour and use a url for the redirect where set. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StyleCI found issues in code style. Fix them to make it green, please.
Thank you for polishing it up! Good job! |
Will try to make a release today evening. |
Happy to help! Thanks for all of your input and patience. |
Laravel Ban v4.4.0 has been released. |
I've added a config var for a route name and amended the middlewares to redirect to the configured route, defaulting to login.