Skip to content
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

Customise the auth middleware name #335

Merged
merged 1 commit into from
Dec 16, 2021
Merged

Conversation

tobytwigger
Copy link
Contributor

We have an edge-case where we use the auth middleware as a middleware group containing the normal auth middleware, but also email verification and other auth-based middleware. It'd therefore be useful for us to customise the name of the auth middleware in Fortify.

This PR moves the auth name into the Fortify configuration and references it in the routes.php file. It uses auth as the default and so is fully backwards compatible, but gives the end user an option to configure it.

@tobytwigger tobytwigger marked this pull request as ready for review December 16, 2021 16:25
@taylorotwell taylorotwell merged commit 55cf2d4 into laravel:1.x Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants