Skip to content

[1.x] Add routes middleware option to configuration #51

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

Closed
wants to merge 2 commits into from
Closed

[1.x] Add routes middleware option to configuration #51

wants to merge 2 commits into from

Conversation

leo95batista
Copy link
Contributor

Hi everyone!.

I have created this PR with the idea of ​​being able to provide the end user with a mechanism to modify which middleware Laravel Fortify is going to use in each of its routes.

Basically the user would just have to go to the config file: config/fortify.php and adjust the value of the middleware key according to their needs.

By default the value of this key is:

'middleware' => ['web'],

I have also added a short description to the option within the configuration file. Regards

@driesvints driesvints changed the title Add routes middleware option to configuration [1.x] Add routes middleware option to configuration Sep 18, 2020
@taylorotwell
Copy link
Member

This already exists in Fortify so only the configuration stub change is needed.

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.

2 participants