22 lines
492 B
PHP
22 lines
492 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Console;
|
||
|
|
|
||
|
|
use App\Jobs\CleanTrashModels;
|
||
|
|
use Illuminate\Console\Scheduling\Schedule;
|
||
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||
|
|
|
||
|
|
class Kernel extends ConsoleKernel
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Define the application's command schedule.
|
||
|
|
*
|
||
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
protected function schedule(Schedule $schedule): void
|
||
|
|
{
|
||
|
|
$schedule->job(CleanTrashModels::class)->monthly();
|
||
|
|
}
|
||
|
|
}
|