Search code examples
phplaravel

"Call to undefined method Intervention\Image\Image::make()"


When I used Laravel Intervention image in localhost then it's working perfect but this when upload live server in my control panel then it's not working...

enter image description here


Solution

  • in config/app.php

    In the $providers array add the service providers for this package.

    Intervention\Image\ImageServiceProvider::class
    

    Add the facade of this package to the $aliases array.

    'Image' => Intervention\Image\Facades\Image::class
    

    according to this link http://image.intervention.io/getting_started/installation

    or at the head of your controller add this after installing it:-

    use Intervention\Image\ImageManagerStatic as Image;