Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 :)

like image 396
Stanisław Szewczyk Avatar asked Dec 11 '22 19:12

Stanisław Szewczyk


2 Answers

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.

like image 152
Marcin Nabiałek Avatar answered Jan 18 '23 23:01

Marcin Nabiałek


I solved by running

php artisan config:clear

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

like image 28
sdk Avatar answered Jan 18 '23 22:01

sdk