Console/Kernel.php
Go to the documentation of this file.
1 <?php
2 
3 namespace App\Console;
4 
6 use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7 
8 class Kernel extends ConsoleKernel
9 {
15  protected $commands = [
16  Commands\PaveIt::class,
17  Commands\CreateAdmin::class,
18  Commands\SendExpirationAlerts::class,
19  Commands\SendInventoryAlerts::class,
20  Commands\AssetImportCommand::class,
21  Commands\LicenseImportCommand::class,
22  Commands\Versioning::class,
23  Commands\SystemBackup::class,
24  ];
25 
32  protected function schedule(Schedule $schedule)
33  {
34 
35  $schedule->command('alerts:inventory')->daily();
36  $schedule->command('alerts:expiring')->daily();
37  $schedule->command('snipeit:backup')->weekly();
38  }
39 }
schedule(Schedule $schedule)
Define the application&#39;s command schedule.