We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ee4b63 commit 0560294Copy full SHA for 0560294
src/ServiceProvider.php
@@ -4,6 +4,7 @@
4
5
namespace Intervention\Image\Laravel;
6
7
+use Illuminate\Contracts\Routing\ResponseFactory;
8
use Illuminate\Support\Facades\Response as ResponseFacade;
9
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
10
use Intervention\Image\ImageManager;
@@ -27,7 +28,7 @@ public function boot()
27
28
__DIR__ . '/../config/image.php' => config_path(Facades\Image::BINDING . '.php')
29
]);
30
- $this->app->booted(function (): void {
31
+ $this->app->afterResolving(ResponseFactory::class, function (): void {
32
// register response macro "image"
33
if ($this->shouldCreateResponseMacro()) {
34
ResponseFacade::macro(Facades\Image::BINDING, function (
0 commit comments