Laravel 5.3:如何保存图像 - 干预仍然可用吗?

I began to use Laravel 5.3, wondering if Intervention is still compatible or not.

I followed the documentation, but I keep getting an error message, saying that

Class 'Intervention\Image\ImageServiceProvider' not found

I simply added Intervention\Image\ImageServiceProvider::class into $providers and also added 'Image' => Intervention\Image\Facades\Image::class into $aliases. Then, I began to see the error message.

When I was using Laravel 5.2, this didn't happen, as far as I remember.

Any advice will be appreciated!

You need to run following command:

Step 1

$ composer require intervention/image

Step 2

In the $providers array add the service providers for this package.

Intervention\Image\ImageServiceProvider::class

Step 3

Add the facade of this package to the $aliases array.

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

Step 4

$ php artisan config:clear
$ php artisan cache:clear

Step 5

composer dump-autoload