PHP code example of mathieu-bour / laravel-cache-fallback

1. Go to this page and download the library: Download mathieu-bour/laravel-cache-fallback 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/ */

    

mathieu-bour / laravel-cache-fallback example snippets


$app->register(Windy\CacheFallback\CacheFallbackServiceProvider::class);



return [
    'default' => env('CACHE_DRIVER', 'file'),
    'stores'  => [
        'file'  => [
            'driver'   => 'file',
            'path'     => storage_path('framework/cache/data'),
        ],
        'redis' => [
            'driver'     => 'redis',
            'connection' => env('CACHE_REDIS_CONNECTION', 'cache'),
            'fallback'   => 'file',
        ],
    ],
];