1、透過composer 安裝composer intervention/image
2、修改config/app.php 文件,加入$providers
和$aliases
'Intervention\Image\ImageServiceProvider'
'Image' => 'Intervention\Image\Facades\Image'
1、By default Intervention Image uses PHP's GD library extension to process all images. If you want to switch to Imagick, you can pull a configuration file into your application by running on of the fmandwing . ##Publish configuration in Laravel 5
$ php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5"Handling image uploads in Laravel
In a Laravel application it is also possible to pass an uploaded file directly to the make method.
Creating Image from File Upload in Laravel