pest icon indicating copy to clipboard operation
pest copied to clipboard

[3.x] Allow container bindings for http classes (laravel arch preset)

Open ol1s opened this issue 1 year ago • 0 comments

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.

ol1s avatar Dec 24 '24 12:12 ol1s