Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MatanYadaev opened this issue Feb 17, 2019 · 6 comments

Comments

@MatanYadaev
Copy link

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

Laravel 5.7, when running composer update

@essteffan
Copy link

I have the same issue, also In laravel 5.7

Any news?

@aharabara
Copy link

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

@essteffan
Copy link

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

Best regards!

@aharabara
Copy link

aharabara commented May 11, 2019

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

@Bronskiy
Copy link

Bronskiy commented Dec 18, 2019

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"
           ]
       }
   },

@salehasadi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants