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