1 | <?php |
||
13 | class ContactSaved implements ShouldBroadcast |
||
14 | { |
||
15 | use SerializesModels; |
||
16 | use InteractsWithSockets; |
||
17 | |||
18 | public $contact; |
||
19 | |||
20 | /** |
||
21 | * Create a new event instance. |
||
22 | * |
||
23 | * @param \Rinvex\Contacts\Models\Contact $contact |
||
24 | */ |
||
25 | public function __construct(Contact $contact) |
||
29 | |||
30 | /** |
||
31 | * Get the channels the event should broadcast on. |
||
32 | * |
||
33 | * @return \Illuminate\Broadcasting\Channel |
||
34 | */ |
||
35 | public function broadcastOn() |
||
39 | |||
40 | /** |
||
41 | * The event's broadcast name. |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | public function broadcastAs() |
||
49 | |||
50 | /** |
||
51 | * Format channel name. |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | protected function formatChannelName(): string |
||
59 | } |
||
60 |