3 namespace App\Console\Commands;
5 use App\Events\RoundChanged;
6 use App\Models\Protocol;
8 use Illuminate\Console\Command;
10 class LockRound extends Command
13 * The name and signature of the console command.
17 protected $signature = 'round:lock {round}';
20 * The console command description.
24 protected $description = 'Lock the round';
27 * Execute the console command.
31 public function handle()
33 $round = Round::findOrFail($this->argument('round'));
36 $this->line('already locked');
40 $round->locked = true;
43 Protocol::roundLocked(
48 RoundChanged::dispatch($round);