CodeIgniter Forums
Proper Middleware support - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: Proper Middleware support (/showthread.php?tid=78753)



Proper Middleware support - MrWhite - 03-06-2021

It would be great if CI4 has a feature like middleware in Laravel. I know we have filters in CI4. But that feature is not flexible and not well thought out.


RE: Proper Middleware support - albertleao - 03-06-2021

(03-06-2021, 06:28 PM)MrWhite Wrote: It would be great if CI4 has a feature like middleware in Laravel. I know we have filters in CI4. But that feature is not flexible and not well thought out.

Unless the ideals have changed, the core team was very much against middleware back when CI4 was being developed.


RE: Proper Middleware support - MrWhite - 03-07-2021

(03-06-2021, 09:07 PM)albertleao Wrote:
(03-06-2021, 06:28 PM)MrWhite Wrote: It would be great if CI4 has a feature like middleware in Laravel. I know we have filters in CI4. But that feature is not flexible and not well thought out.

Unless the ideals have changed, the core team was very much against middleware back when CI4 was being developed.

Really? any idea why?

And are they think their filters implementation is better than Laravel's middleware?

Since CI4 core team very sensitive for breaking changes, CI4 filters will be sucks forever.

I wish their mind get changed. Wink


RE: Proper Middleware support - iRedds - 03-07-2021

What's the difference in functionality between filters and middleware?


RE: Proper Middleware support - kenjis - 03-07-2021

What's your needs that do not meet in the filters?


RE: Proper Middleware support - albertleao - 03-08-2021

(03-07-2021, 12:34 AM)MrWhite Wrote:
(03-06-2021, 09:07 PM)albertleao Wrote:
(03-06-2021, 06:28 PM)MrWhite Wrote: It would be great if CI4 has a feature like middleware in Laravel. I know we have filters in CI4. But that feature is not flexible and not well thought out.

Unless the ideals have changed, the core team was very much against middleware back when CI4 was being developed.

Really? any idea why?

And are they think their filters implementation is better than Laravel's middleware?

Since CI4 core team very sensitive for breaking changes, CI4 filters will be sucks forever.

I wish their mind get changed. Wink

I believe their thought process was that filters were just as good and cleaner.


RE: Proper Middleware support - magentip - 03-11-2021

I think filters are good enough and easy to use