forge/app/Console/Commands/SptVersionModCountsCommand.php

23 lines
503 B
PHP
Raw Normal View History

<?php
2025-01-30 00:23:55 -05:00
declare(strict_types=1);
namespace App\Console\Commands;
use App\Jobs\SptVersionModCountsJob;
use Illuminate\Console\Command;
class SptVersionModCountsCommand extends Command
{
protected $signature = 'app:count-mods';
protected $description = 'Recalculate the mod counts for each SPT version';
public function handle(): void
{
SptVersionModCountsJob::dispatch()->onQueue('default');
$this->info('SptVersionModCountsJob has been added to the queue');
}
}