Laravel / Intervention Image Class - class not found
Step 1:
Add "intervention/image": "dev-master"
to the “require” section of your composer.json
file.
"require": {
"laravel/framework": "4.1.*",
"intervention/image": "dev-master"
},
Step 2:
Run CMD;
$ composer install
If you've got this warning:
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
do $ composer update
and then $ composer install
Step 3:
open the config/app.php
file. Add this to the $providers
array.
Intervention\Image\ImageServiceProvider::class
Step 4:
Next add this to the $aliases
array.
'Image' => Intervention\Image\Facades\Image::class
Step 5:
If there is an error;
Class 'Intervention\Image\ImageServiceProvider' not found
try
$ composer update
Image class not found when using Intervention
In your app.php Add this in your aliases
:
'Image' => Intervention\Image\Facades\Image::class,
and in your providers
Intervention\Image\ImageServiceProvider::class,
Don't forget to do php artisan config:cache
after this.
Class 'Image' not found laravel 5.3
composer require intervention/image
then open the config/app.php
file.
Add this to the $providers
array.
Intervention\Image\ImageServiceProvider::class
Next add this to the $aliases array.
'Image' => Intervention\Image\Facades\Image::class
then composer dump-autoload
and make sure you call it at the top of your controller : use Intervention\Image\ImageManagerStatic as Image;
How to chain pseudo selectors in SASS
a
&:visited:hover
attribute: foo
Nowadays, this is the only valid form. Indention has to be consistent (2 spaces are recommended) and the colon follows the attribute.
Related Topics
Codeigniter 2 on Iis with Web.Config File
PHP Exec() Not Returning Error Message in Output
Remove Everything from the First Occurrence of a Character to the End of a String in PHP
How to Format Messages for Queueing
PHP & Hash/Fragment Portion of Url
Change Cart Total Price in Woocommerce
How to Import Xml String in a PHP Domdocument
Remove Null, False, and '' - But Not 0 - from a PHP Array
I am Confused About PHP Post/Redirect/Get
Handling Multiple File Uploads in Sonata Admin Bundle
How to Remove Null Values from an Array