PHP code example of darwinnatha / purge-logs
1. Go to this page and download the library: Download darwinnatha/purge-logs 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/ */
darwinnatha / purge-logs example snippets
return [
'retention_period' => 7,
];
bash
php artisan vendor:publish --provider="Darwinnatha\PurgeLogs\PurgeLogsServiceProvider"
bash
php artisan logs:purge
bash
php artisan logs:purge --keep-days=7