Class ‘Image’ not found in laravel

Class ‘Image’ not found in laravel

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Class ‘Image’ not found
Here is solution for this:

Step 1: Using Composer

	composer require intervention/image

Step 2: Find the providers in config >> app.php file and register the ImageServiceProvider.

	'providers' => [
        // ...
        Intervention\Image\ImageServiceProvider::class,
    ]

Step 3: Locate the aliases in config >> app.php file and register the aliases.

	'aliases' => [
        // ...
        'Image' => Intervention\Image\Facades\Image::class,
    ]

Comments

comments

Share