1 | <?php |
||
2 | |||
3 | namespace MohsenAbrishami\Stethoscope\Commands; |
||
4 | |||
5 | use Illuminate\Console\Command; |
||
6 | use MohsenAbrishami\Stethoscope\LogRecord\Facades\Record; |
||
7 | |||
8 | class CleanupCommand extends Command |
||
9 | { |
||
10 | /** |
||
11 | * The name and signature of the console command. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'stethoscope:clean'; |
||
16 | |||
17 | /** |
||
18 | * The console command description. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = 'Delete all resource logs older than specified number of days in config.'; |
||
23 | |||
24 | /** |
||
25 | * Execute the console command. |
||
26 | * |
||
27 | * @return int |
||
28 | */ |
||
29 | public function handle() |
||
30 | { |
||
31 | Record::clean(); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
32 | } |
||
33 | } |
||
34 |