| 1 | <?php |
||
| 9 | class NotificationWasCreated extends Event implements ShouldBroadcast |
||
| 10 | { |
||
| 11 | use SerializesModels; |
||
| 12 | /** |
||
| 13 | * @var Notification |
||
| 14 | */ |
||
| 15 | public $notification; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create a new event instance. |
||
| 19 | * |
||
| 20 | * @param Notification $notification |
||
| 21 | */ |
||
| 22 | public function __construct(Notification $notification) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get the channels the event should be broadcast on. |
||
| 29 | * |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | public function broadcastOn() |
||
| 36 | } |
||
| 37 |