PHP code example of simonvomeyser / laravel-glide-images

1. Go to this page and download the library: Download simonvomeyser/laravel-glide-images 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/ */

    

simonvomeyser / laravel-glide-images example snippets

index.blade.php
<!-- will generate an image 500px in width -->
<img src="{{ glide('images/image.jpg', 500) }}">

<!-- will generate an 500x500 image in grayscale -->
<img src="{{ glide('images/image.jpg', ['w' => 500, 'h'=> 500 'filt' => 'grayscale']) }}">
bash
php artisan vendor:publish --tag="laravel-glide-images-config"