PHP code example of laravel-at / laravel-image-sanitize

1. Go to this page and download the library: Download laravel-at/laravel-image-sanitize 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/ */

    

laravel-at / laravel-image-sanitize example snippets

 php
protected $routeMiddleware = [
    // ...
    'image-sanitize' => \LaravelAt\ImageSanitize\ImageSanitizeMiddleware::class,
];

 php
public function __construct()
{
    $this->middleware('image-sanitize');
}
 php
Route::post('/files', 'FileController@upload')
    ->name('file.upload')
    ->middleware(['image-sanitize']);