Skip to content
This repository was archived by the owner on Nov 23, 2020. It is now read-only.

Conversation

jguyomard
Copy link

Hello,

I think using a middleware group (instead of an alias) is a better practice here. Why? Because it allows developers to add other middlewares in the group (programmatically or using the app/Http/Kernel.php file.

According to me, there is no breaking changes.
I did some tests under Laravel 5.4 and Laravel 5.5.

Copy link
Contributor

@lloy0076 lloy0076 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something tells me there should be some documentation re: this but that's not really part of this PR.

@tabacitu
Copy link
Member

tabacitu commented Mar 6, 2018

Thanks a lot, @jguyomard ! I think you're totally right, it makes way more sense for it to be a middleware group, instead of a simple middleware.

I merged your changes into PR #258, so I'm going to close this PR. Thanks again!

@tabacitu tabacitu closed this Mar 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants