Files
newznab-tmux/routes/console.php
T
DariusIII d50153a962 CS fixes
2024-04-27 10:44:20 +02:00

34 lines
1.3 KiB
PHP

<?php
use App\Jobs\RemoveInactiveAccounts;
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Schedule;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
Schedule::command('disposable:update')->weekly();
Schedule::command('clean:directories')->hourly()->withoutOverlapping();
Schedule::command('nntmux:delete-unverified-users')->twiceDaily(1, 13);
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();
Schedule::command('cache:prune-stale-tags')->hourly();
if (config('nntmux.purge_inactive_users') === true) {
Schedule::job(new RemoveInactiveAccounts())->daily();
}