Laravel 5 Class 'Intervention\Image\ImageServiceProvider' not found

- 1 answer

Ad

Hi I have problem with Intervention Image. When I use composer update or

php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5"

I have error:

[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Intervention\Image\ImageServiceProvider' not found**

Have you idea? I did everything from http://image.intervention.io/getting_started/installation and I don't know what should I do now, please help me :)

Ad

Answer

Ad

Have you followed installation guide carefully ?

You need to first run:

composer require intervention/image

and you should modify config.app.php after you already install this package (so after composer require) and not before.

Ad
source: stackoverflow.com
Ad