1. Go to this page and download the library: Download michielkempen/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/ */
michielkempen / laravel-glide example snippets
return [
'source' => [
/*
* The filesystem where the original files are stored.
*/
'filesystem' => env('GLIDE_SOURCE_FILESYSTEM', 'public'),
/*
* The path within the filesystem where the original files are stored.
*/
'path' => env('GLIDE_SOURCE_PATH', ''),
],
'cache' => [
/*
* The filesystem where the manipulated files will be cached.
*/
'filesystem' => env('GLIDE_CACHE_FILESYSTEM', 'public'),
/*
* The path within the filesystem where the manipulated files will be cached.
*/
'path' => env('GLIDE_CACHE_PATH', 'cache/'),
],
/*
* The secret that is used to sign the manipulation requests.
*/
'secret' => env('GLIDE_SECRET', 'secret'),
/*
* The prefix of the original files endpoint.
*/
'file_endpoint_prefix' => env('FILE_ENDPOINT_PREFIX', '/storage/'),
/*
* The prefix of the manipulated files endpoint.
*/
'glide_endpoint_prefix' => env('GLIDE_ENDPOINT_PREFIX', '/glide/'),
];