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.
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.