| 1 | <?php |
||
| 13 | class UserCreatedEvent extends Event |
||
| 14 | { |
||
| 15 | |||
| 16 | use SerializesModels; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var |
||
| 20 | */ |
||
| 21 | public $user; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * UserCreatedEvent constructor. |
||
| 25 | * |
||
| 26 | * @param $user |
||
| 27 | */ |
||
| 28 | public function __construct($user) |
||
| 29 | { |
||
| 30 | $this->user = $user; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Get the channels the event should be broadcast on. |
||
| 35 | * |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | public function broadcastOn() |
||
| 42 | } |
||
| 43 |