Update Intervention/Image class to v3

This commit is contained in:
Jonny Barnes 2023-12-17 13:56:10 +00:00
parent 58a03ef931
commit 6d5b298837
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
6 changed files with 84 additions and 46 deletions

View file

@ -30,7 +30,7 @@ class AppServiceProvider extends ServiceProvider
// configure Intervention/Image
$this->app->bind('Intervention\Image\ImageManager', function () {
return new \Intervention\Image\ImageManager(['driver' => config('image.driver')]);
return \Intervention\Image\ImageManager::withDriver(config('image.driver'));
});
// Bind the Codebird client