command('queue:prune-batches')->daily(); if (config('backups.prune_age')) { // Every 30 minutes, run the backup pruning command so that any abandoned backups can be deleted. $schedule->command(PruneOrphanedBackupsCommand::class)->everyThirtyMinutes(); } if (config('activity.prune_days')) { $schedule->command(PruneCommand::class, ['--model' => [ActivityLog::class]])->daily(); } $schedule->command(ResetUsagesCommand::class)->daily(); $schedule->command(PruneUsersCommand::class)->daily(); $schedule->command(UpdateUsagesCommand::class)->everyFiveMinutes(); $schedule->command(UpdateRateLimitsCommand::class)->everyTenMinutes(); } /** * Register the commands for the application. */ protected function commands(): void { $this->load(__DIR__.'/Commands'); //require base_path('routes/console.php'); } }