PHP code example of pboivin / flou-laravel
1. Go to this page and download the library: Download pboivin/flou-laravel 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/ */
pboivin / flou-laravel example snippets
{!! Flou::imageSet([
'image' => 'my-image.jpg',
'widths' => [400, 800, 1200, 1600],
'formats' => ['webp', 'jpg'],
])
->render()
->picture(['class' => 'my-image', 'alt' => 'Lorem ipsum']);
!!}
php artisan vendor:publish --tag=flou-config