6 use Illuminate\Broadcasting\Channel;
7 use Illuminate\Broadcasting\InteractsWithSockets;
8 use Illuminate\Broadcasting\PresenceChannel;
9 use Illuminate\Broadcasting\PrivateChannel;
10 use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
11 use Illuminate\Foundation\Events\Dispatchable;
12 use Illuminate\Queue\SerializesModels;
14 class ResultReported implements ShouldBroadcast
16 use Dispatchable, InteractsWithSockets, SerializesModels;
19 * Create a new event instance.
23 public function __construct(Result $result)
25 $this->result = $result;
29 * Get the channels the event should broadcast on.
31 * @return \Illuminate\Broadcasting\Channel|array
33 public function broadcastOn()
35 return new Channel('Tournament.'.$this->result->round->tournament_id);