PHP code example of balismatz / laravel-image-style

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

    

balismatz / laravel-image-style example snippets

shell
php artisan vendor:publish --provider="BalisMatz\ImageStyle\ImageStyleServiceProvider"
shell
php artisan image-style:make

> -- Levels --
>
> 0 : /app/ImageStyles/ThumbnailImageStyle.php
> 1 : /app/ImageStyles/Posts/ThumbnailImageStyle.php
> 2 : /app/ImageStyles/Posts/Show/ThumbnailImageStyle.php
> 3 : /app/ImageStyles/Posts/Show/Gallery/ThumbnailImageStyle.php
> 
shell
php artisan image-style:list
paths()
paths()
shell
php artisan image-style:flush
shell
php artisan image-style:cache
shell
   php artisan image-style:clear