1 | <?php |
||
17 | class UserCreated implements ShouldBroadcast |
||
18 | { |
||
19 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
20 | |||
21 | public $user; |
||
22 | |||
23 | /** |
||
24 | * UserCreated constructor. |
||
25 | * |
||
26 | * @param $user |
||
27 | */ |
||
28 | public function __construct($user) |
||
32 | |||
33 | |||
34 | /** |
||
35 | * Get the channels the event should broadcast on. |
||
36 | * |
||
37 | * @return Channel|array |
||
38 | */ |
||
39 | public function broadcastOn() |
||
43 | } |
||
44 |