Intervention Image has optional support for Laravel and comes with a Service Provider and Facades for easy integration. The vendor/autoload.php file is included by Laravel, so you don’t have to require or autoload manually. We use Laravel 7. Also, I have used the intervention/image package to resize the image and then save the image into the database. We generally have the use cases like upload an avatar or upload a product image of a specific size on an e-commerce website. So intervention/image package is used to upload and resize the images.
Intervention Image requires the following components to work correctly.
And one of the following image libraries.
First, we install Laravel Project.
#laravel #laravel 7 #php