1 | <?php |
||
10 | class RoomUpdate implements ShouldBroadcast |
||
11 | { |
||
12 | use InteractsWithSockets, SerializesModels; |
||
13 | |||
14 | public $data; |
||
15 | public $roomId; |
||
16 | |||
17 | /** |
||
18 | * Create a new event instance. |
||
19 | */ |
||
20 | public function __construct($roomId, $data) |
||
25 | |||
26 | /** |
||
27 | * Get the channels the event should broadcast on. |
||
28 | * |
||
29 | * @return Channel|array |
||
30 | */ |
||
31 | public function broadcastOn() |
||
35 | } |
||
36 |