PHP code example of spinen / laravel-garbage-man

1. Go to this page and download the library: Download spinen/laravel-garbage-man 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/ */

    

spinen / laravel-garbage-man example snippets

 artisan garbageman:purge;

$schedule->command('garbageman:purge')
         ->daily();

'logging_level' => [
    'console' => 3,
    'log'     => 6,
],

'schedule' => [
    App\ModelOne::class => 14,
    App\ModelTwo::class => 30,
],
bash
$ php artisan vendor:publish
GARBAGEMAN_CONSOLE_LOG_LEVEL
GARBAGEMAN_LOG_LEVEL