laravel-image-legacy icon indicating copy to clipboard operation
laravel-image-legacy copied to clipboard

ImageServiceProvider.php line 42: Call to undefined method Intervention\Image\ImageManager::pattern()

Open MatanYadaev opened this issue 6 years ago • 6 comments

In ImageServiceProvider.php line 42:
                                                                       
  Call to undefined method Intervention\Image\ImageManager::pattern()  

Laravel 5.7, when running composer update

MatanYadaev avatar Feb 17 '19 12:02 MatanYadaev

I have the same issue, also In laravel 5.7

Any news?

essteffan avatar Mar 29 '19 12:03 essteffan

I have a response for you guys. I suppose you use some package like spatie/browsershot, spatie/image or other stuff that is loading package intervention/image which is rewriting ImageManager::class singleton in $app['image'] and when folklore/image package is initializing it is calling $app['image'] which is a totally different object. Basically folklore/image and intervention/image packages are conflicting @essteffan, @MatanYed

aharabara avatar Apr 05 '19 13:04 aharabara

You are right @aharabara I am using both of them in a project...but how did it work before?

Best regards!

essteffan avatar May 11 '19 05:05 essteffan

You did package/project version upgrade. For me it was Laravel update from 5.2 to 5.6. I replaced less problematic package with custom service and it worked 😁 @essteffan

aharabara avatar May 11 '19 10:05 aharabara

I found a slightly weird solution but it works(laravel 5.7) :) Change "extra' in your composer.json:

"extra": {
       "laravel": {
           "dont-discover": [
             "intervention/image",
             "folklore/image"
           ]
       }
   },

Bronskiy avatar Dec 18 '19 17:12 Bronskiy

I found a slightly weird solution but it works(laravel 5.7) :) Change "extra' in your composer.json:

"extra": {
       "laravel": {
           "dont-discover": [
             "intervention/image",
             "folklore/image"
           ]
       }
   },

Thanks man

salehasadi avatar Apr 15 '20 20:04 salehasadi