4

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

Marcin Nabiałek
  • 109,655
  • 42
  • 258
  • 291
Stanisław Szewczyk
  • 105
  • 1
  • 3
  • 11

2 Answers2

12

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.

Marcin Nabiałek
  • 109,655
  • 42
  • 258
  • 291
2

I solved by running

php artisan config:clear

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

sdk
  • 73
  • 2
  • 9