jshannon63 / laravel-psr15-middleware

Use your PSR-15 compliant middleware in Laravel
MIT License
13 stars 5 forks source link

Add route parameters #4

Closed jshannon63 closed 6 years ago

jshannon63 commented 6 years ago

This is a take on the work done by danjo on PR #3 which provided the ability to pass middleware constructor parameters from Laravel routes. A slightly different approach was taken to inject the parameters during the normal instantiation of the middleware object within the handler.

Hoping to have a review and confirmation from danjo. Also danielpernold for his contribution.

dandjo commented 6 years ago

Clean and very nice solution. Works for me!