pest
pest copied to clipboard
[3.x] Allow container bindings for http classes (laravel arch preset)
What:
- [x] Bug Fix
Description:
Current Laravel arch preset only allows App\Http classes to be used within App\Http.
This makes sense MOST of the time.
But feels reasonable to accept that container bindings for controllers/middleware MAY be manually registered in service providers eg. primitives https://laravel.com/docs/11.x/container#binding-primitives
This means App\Http also needs to be usable in App\Providers.