Laravel 4 Integration
Open your Laravel config file and add the following lines.
In the array add the service providers for this package.
Add the facade of this package to the array.
‘Image’ => ‘Intervention\Image\Facades\Image’
It’s possible to pass an uploaded file directly to the make method.
Attaching images to HTTP responses
To return an image directly, you can add it directly to a response and it will be returned in JPG format. Don’t forget to add a proper .
It’s also possible to use the shortcut method to create the HTTP response automatically.