ingeniasoftware / luthier-ci

Improved routing, middleware support, authentication tools and more for CodeIgniter 3 framework
https://luthier.ingenia.me/ci/en/
MIT License
150 stars 38 forks source link

Passing arguments to middleware #45

Closed ngekoding closed 4 years ago

ngekoding commented 4 years ago

Hi, thanks for this awesome library.

I just try to passing an argument to the Middleware, like for checking the user role. The image below as the example from Laravel.

Screenshot

How can I do that?

andersonsalas commented 4 years ago

Hi @ngekoding!

Unfortunately there is no support for middleware parameters in 1.x version of Luthier CI. This could be (and will be) an interesting addition for 2.0 version and I'll consider it.

ngekoding commented 4 years ago

Thank you, hopefully version 2.0 is coming soon.