2016-03-25 01:18:05 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Console;
|
|
|
|
|
2019-07-18 14:30:18 -07:00
|
|
|
use App\Console\Commands\ImportLocations;
|
2019-09-03 11:03:32 -07:00
|
|
|
use App\Console\Commands\ReEncodeCustomFieldNames;
|
2019-05-05 19:32:52 -07:00
|
|
|
use App\Console\Commands\RestoreDeletedUsers;
|
2016-03-25 01:18:05 -07:00
|
|
|
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)
|
|
|
|
{
|
2016-04-19 04:36:36 -07:00
|
|
|
$schedule->command('snipeit:inventory-alerts')->daily();
|
|
|
|
$schedule->command('snipeit:expiring-alerts')->daily();
|
2017-10-16 05:01:15 -07:00
|
|
|
$schedule->command('snipeit:expected-checkin')->daily();
|
2016-03-25 01:18:05 -07:00
|
|
|
$schedule->command('snipeit:backup')->weekly();
|
2016-05-12 16:54:07 -07:00
|
|
|
$schedule->command('backup:clean')->daily();
|
2019-05-05 19:32:52 -07:00
|
|
|
$schedule->command('snipeit:upcoming-audits')->daily();
|
2022-06-21 19:35:16 -07:00
|
|
|
$schedule->command('auth:clear-resets')->everyFifteenMinutes();
|
2016-03-25 01:18:05 -07:00
|
|
|
}
|
2016-12-19 11:04:28 -08:00
|
|
|
|
2018-08-01 00:06:41 -07:00
|
|
|
/**
|
|
|
|
* This method is required by Laravel to handle any console routes
|
2018-12-06 14:05:43 -08:00
|
|
|
* that are defined in routes/console.php.
|
2018-08-01 00:06:41 -07:00
|
|
|
*/
|
2016-12-19 11:04:28 -08:00
|
|
|
protected function commands()
|
|
|
|
{
|
|
|
|
require base_path('routes/console.php');
|
2019-05-22 00:52:14 -07:00
|
|
|
$this->load(__DIR__.'/Commands');
|
2016-12-19 11:04:28 -08:00
|
|
|
}
|
2016-03-25 01:18:05 -07:00
|
|
|
}
|