PHP code example of jhdxr / laravel-prune-db-cache
1. Go to this page and download the library: Download jhdxr/laravel-prune-db-cache 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/ */
jhdxr / laravel-prune-db-cache example snippets
protected function schedule(Schedule $schedule)
{
$schedule->command('cache:db-prune-expired')->dailyAt('04:00');
}
bash
php artisan cache:db-prune-expired