PHP code example of alibori / laravel-logs-cleaner

1. Go to this page and download the library: Download alibori/laravel-logs-cleaner 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/ */

    

alibori / laravel-logs-cleaner example snippets




// config for Alibori/LaravelLogsCleaner
return [
    // Specify logs subdirectories to exclude from logs deletion
    'exclude_subdirectories' => [
        // 'custom-directory',
    ],
];
bash
php artisan vendor:publish --tag="logs-cleaner-config"
bash
php artisan logs:clean --force