PHP code example of jscustom / laravel-image-resize
1. Go to this page and download the library: Download jscustom/laravel-image-resize library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jscustom / laravel-image-resize example snippets
bash
php artisan vendor:publish --provider="JSCustom\ImageResize\Providers\ImageResizeServiceProvider" --tag="config"
bash
POST
bash
public function __construct(
\JSCustom\ImageResize\Services\ImageResizeService $ImageResizeService
) {
$this->_imageResizeService = $ImageResizeService;
}
bash
$image = $this->_imageResizeService->imageResize($request);