PHP code example of codegenie-be / laravel-config-cache-guard

1. Go to this page and download the library: Download codegenie-be/laravel-config-cache-guard 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/ */

    

codegenie-be / laravel-config-cache-guard example snippets







text
bootstrap/cache/routes-v7.php
bash
php artisan config:cache
bash
php artisan route:cache
dotenv
CONFIG_CACHE_GUARD_ENABLED=true
CONFIG_CACHE_GUARD_CONFIG=true
CONFIG_CACHE_GUARD_ROUTES=true
CONFIG_CACHE_GUARD_SIGNATURE_MODE=metadata
CONFIG_CACHE_GUARD_AUTO_REPAIR=true
CONFIG_CACHE_GUARD_FAILURE_COOLDOWN=60
CONFIG_CACHE_GUARD_LOCK_TIMEOUT=2000
CONFIG_CACHE_GUARD_PROCESS_TIMEOUT=30
CONFIG_CACHE_GUARD_PHP_BINARY=/usr/bin/php
bash
touch config/app.php
bash
php artisan route:cache
php artisan config-cache-guard:status
bash
touch routes/web.php
bash
php artisan config:cache
php artisan route:cache
powershell
Remove-Item .\src\Http\Middleware\RefreshAfterRouteCacheRepair.php -Force -ErrorAction SilentlyContinue
composer dump-autoload --optimize
env
CONFIG_CACHE_GUARD_PHP_BINARY=/usr/bin/php