Laravel Intervention Image Class - Class 'Image' not found
I'm trying to install intervention/image from composer, but after installation I get this error:
Class 'Image' not found
1: install via composer:
composer require intervention/image
2: add to providers array:
3: add to aliases array:
'Image' => 'Intervention\Image\Facades\Image'
4: update composer:
php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5"
Nothing to publish for tag .
Copy file config.php in folder /vender/intervention/image/src/config/config.php to /config/ and rename config.php to image.php
php artisan config:cache
If you use the Image facade into a namespaced class, you should try this
// import class use Image; // then Image::make('public/foo.jpg');