1. Go to this page and download the library: Download shishima/laravel-thumbnail 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/ */
shishima / laravel-thumbnail example snippets
'ignore_extensions' => ['png', 'jpg']
use Shishima\Thumbnail\Facade\Thumbnail;
Thumbnail::setFile($file)->create();
use Shishima\Thumbnail\Facade\Thumbnail;
$file = public_path('files/example.docx');
Thumbnail::setFile($file)->create();
use Shishima\Thumbnail\Facade\Thumbnail;
Thumbnail::setFile($request->file('file'))->create();