Hi,
I'm graduated in Computer Science, and I've learnt that middlewares are "translators", and not "filters", as implemented in Laravel 5.0.
My question is: Why the Laravel's middleware looks like Java "Aspects", and why the "Middleware" title was adopted if it actually has none middleware concept in fact?
Based on: http://mattstauffer.co/blog/laravel-5.0-middleware-replacing-filters
Thanks a lot!
I was thinking the same...
This article written by Matt is excellent. If you read well, he's explaining about the differences between filters and middlewares on his conclusion.
"Filters are a little easier a jump from our normal thinking about controller route requests. But middleware—the concept of the stack which passes along only a request, allowing it to be decorated piece by piece--is cleaner, simpler, and more flexible."
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community