PHP code example of richan-fongdasen / laravel-glide

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

    

richan-fongdasen / laravel-glide example snippets


return [
    'asset_url_prefix'       => '/assets',
    'default_headers'        => [
        'Cache-Control' => 'max-age=31536000, public',
    ],
    'default_image_format'   => 'webp',
    'disks'                  => [
        'cache'  => env('GLIDE_CACHE_DISK', 'local'),
        'source' => env('GLIDE_SOURCE_DISK', 'public'),
    ],
    'driver'                 => env('GLIDE_DRIVER', 'imagick'),
    'max_image_size'         => 2048*2048,
    'server'                 => true,
    'server_hostname'        => env('GLIDE_SERVER_HOSTNAME', 'localhost:8000'),
    'sign_key'               => env('GLIDE_SIGN_KEY'),
    'url_scheme'             => env('GLIDE_URL_SCHEME', 'http'),
];