1
0
mirror of https://github.com/Intervention/image.git synced 2025-02-07 14:20:37 +01:00

Fix undefined method

Share method will be removed as of Laravel 5.4

1a1969b6e6 (diff-52441e04e14c52275cd5d09e8f958981L300)
This commit is contained in:
micaelpdias 2017-01-10 11:07:20 +00:00 committed by GitHub
parent 75aef99747
commit e4c12e5b1d

View File

@ -47,7 +47,7 @@ class ImageServiceProviderLaravel5 extends ServiceProvider
);
// create image
$app['image'] = $app->share(function ($app) {
$app->singleton('image', function ($app) {
return new ImageManager($app['config']->get('image'));
});