PHP code example of encoredigitalgroup / laravel-cache-prune
1. Go to this page and download the library: Download encoredigitalgroup/laravel-cache-prune 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/ */
encoredigitalgroup / laravel-cache-prune example snippets
use EncoreDigitalGroup\LaravelCachePrune\Console\Commands\CachePruneCommand;use Illuminate\Support\Facades\Schedule;
Schedule::command("cache:prune")->daily(); // Or any other interval you prefer.
//OR
Schedule::command(CachePruneCommand::class)->daily(); // Or any other interval you prefer.