23 lines
480 B
PHP
23 lines
480 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Traits\UpdateHelper;
|
|
use Illuminate\Console\Command;
|
|
|
|
class PreCalcPlayer extends Command
|
|
{
|
|
use UpdateHelper;
|
|
|
|
protected $signature = 'grp:ply {--d}';
|
|
|
|
protected $description = 'player pre calculations';
|
|
|
|
public function handleUpdate(int $playerCount): void
|
|
{
|
|
// Have fun running imports here
|
|
// Examples can be found in the ImportHelper trait
|
|
$this->updatePlayers($playerCount);
|
|
}
|
|
}
|