Closed dandjo closed 6 years ago
I like this, but currently not getting parameters passed by kernel. Have you got this working at your end ok?
Actually just got it working. I will prepare a similar method and PR for discussion. Thanks again!
Please check PR #4 for an alternative approach to your PR. Please let me know what you think
See PR #4
Hey Jim, I added the possibility to use middleware arguments in routes. They are passed to the middleware constructor. You can then use:
config/psr15middleware.php
routes/web.php
Http/Middleware/Psr15/Example.php
Feel free to optimize the implementation. Kind regards. Daniel