| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class ConsoleKernel extends LaravelConsoleKernel |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * The Artisan commands provided by your application. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $commands = [ |
||
| 22 | BootstrapCacheCommand::class, |
||
| 23 | BootstrapClearCacheCommand::class, |
||
| 24 | DatabaseResetCommand::class, |
||
| 25 | ClearModelsCacheCommand::class, |
||
| 26 | DisplayEnvCommand::class, |
||
| 27 | ]; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Define the application's command schedule. |
||
| 31 | * |
||
| 32 | * @param \Illuminate\Console\Scheduling\Schedule $schedule |
||
| 33 | * |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | 43 | protected function schedule(Schedule $schedule) |
|
| 37 | { |
||
| 38 | 43 | $schedule->command('horizon:snapshot')->everyFiveMinutes(); |
|
| 39 | 43 | $schedule->job(new AlterDemoDataJob())->everyMinute(); |
|
| 40 | 43 | } |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Register the commands for the application. |
||
| 44 | * |
||
| 45 | * @return void |
||
| 46 | */ |
||
| 47 | 43 | protected function commands() |
|
| 50 | 43 | } |
|
| 51 | } |
||
| 52 |