PHP code example of johan-code / image-thumbs

1. Go to this page and download the library: Download johan-code/image-thumbs 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/ */

    

johan-code / image-thumbs example snippets


 return [
     'disk_name' => 'public'
 ];
 

'disks' => [
    ...
    'public' => [
        'driver' => 'local',
        'root' => storage_path('app/public'),
        'url' => '/storage',
    ],
    ...
],

'providers' => [
    ...
    JohanCode\ImageThumbs\ServiceProvider::class,
    ...
]
bash
php artisan vendor:publish --provider="JohanCode\ImageThumbs\ServiceProvider"
bash
php artisan storage:link