1

this question is asked many times and I did all the introductions I could found but I still get this error message.

I updated my config/app.php (

providers:

Intervention\Image\ImageServiceProvider::class,

aliases:

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

and the composer.json

"intervention/image": "dev-master",

After this I did a composer update but my error message is still the same.. I'm using laravel 5

I did what the link says:

http://image.intervention.io/getting_started/installation

and yeah.. now I'm stuck

Another thing I dont understand is why they say I should write:

'Intervention\Image\ImageServiceProvider' 

in the provider array. Why the ' '? All the other elements in my provider array are written like this:

'Request'   => Illuminate\Support\Facades\Request::class,
'Response'  => Illuminate\Support\Facades\Response::class,
'Route'     => Illuminate\Support\Facades\Route::class,

so I removed the ' ' and addet ::class

the same with the aliases

I dont know if thats okay but maybe someone of you could help me

thanks for help

Elie Faës
  • 3,215
  • 1
  • 25
  • 41
ItzMe42
  • 211
  • 2
  • 9
  • If I understood it right then I think it is similar with an issue I had.. Try using an alias as `Img` instead of `Image`. It seems that there is a conflict with another framework class – Mihai Matei Jan 22 '16 at 08:40
  • I did that but this havent changed anything :/ – ItzMe42 Jan 22 '16 at 08:48
  • check your vendor folder and make sure the class actually exists. – Jeemusu Jan 22 '16 at 08:51
  • Have you tryed composer update and php artisan dump-autoload? – Th3Alchemist Jan 22 '16 at 09:23
  • Possible duplicate of [Laravel / Intervention Image Class - class not found](http://stackoverflow.com/questions/27374613/laravel-intervention-image-class-class-not-found) – Th3Alchemist Jan 22 '16 at 09:24
  • well I made it somehow.. but not I get this error: Image source not readable -- do you know what I can do against it? – ItzMe42 Jan 22 '16 at 10:49

1 Answers1

0

The ::class operator gives the fully qualified class name and was introduced in PHP 5.5 as you can see here. It's perfectly ok to use it if you have PHP >= 5.5.

I would suggest to check in the vendor directory if the package exists. I use "intervention/image": "^2.3" and everything's working great on L5.1

Elie Faës
  • 3,215
  • 1
  • 25
  • 41