This PR aims to support Laravel Octane by avoiding the injection of the IoC container.
The container instance injected in the class HandleCors is not removed in this PR to avoid potential breaking changes, however the injected instance won't be called in HandleCors.
Facades are used instead as they always resolve up-to-date instances out of the latest version of the container.
This PR aims to support Laravel Octane by avoiding the injection of the IoC container.
The container instance injected in the class
HandleCors
is not removed in this PR to avoid potential breaking changes, however the injected instance won't be called inHandleCors
.Facades are used instead as they always resolve up-to-date instances out of the latest version of the container.