Files
newznab-tmux/app/Console/Kernel.php
T
2019-11-11 19:39:45 +01:00

53 lines
1.5 KiB
PHP

<?php
namespace App\Console;
use App\Jobs\RemoveInactiveAccounts;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('disposable:update')->weekly();
$schedule->command('clean:directories')->hourly()->withoutOverlapping();
$schedule->command('nntmux:delete-unverified-users')->twiceDaily(1, 13)->emailOutputTo();
$schedule->command('nntmux:update-expired-roles')->daily();
$schedule->command('nntmux:remove-bad')->hourly()->withoutOverlapping();
$schedule->command('telescope:prune')->daily();
$schedule->command('horizon:snapshot')->everyFiveMinutes()->withoutOverlapping();
$schedule->command('cloudflare:reload')->daily();
if (config('nntmux.purge_inactive_users') === true) {
$schedule->job(new RemoveInactiveAccounts())->daily();
}
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}