@_newtonjob The inconsistency mentioned in this code is that, the developer started with the pattern of using invokable controller for a resourceful action (fetching a blogs and playlist), but later deviated to using a resourceful controller for fetching video.
Guys, here’s the next big thing.
https://t.co/9DYEgbiyBa
Want to build your mobile app ideas quickly ? NativePHP got you covered. Thanks @nativephp@ShaneDRosenthal@simonhamp for this gift.
Don’t sleep on this guys.
@_newtonjob@PovilasKorop Ok, for more clarification, I made that trait with Laravel 11 in mind, apparently, in laravel 11 to add a controller middleware, you need to implement the HasMiddleware trait, which means your controller has to define a static method called 'middleware'. Hence this approach.