1 | <?php |
||
2 | |||
3 | namespace Mydnic\Kustomer\Events; |
||
4 | |||
5 | use Illuminate\Broadcasting\Channel; |
||
6 | use Illuminate\Queue\SerializesModels; |
||
7 | use Illuminate\Broadcasting\PrivateChannel; |
||
8 | use Illuminate\Broadcasting\PresenceChannel; |
||
9 | use Illuminate\Foundation\Events\Dispatchable; |
||
10 | use Illuminate\Broadcasting\InteractsWithSockets; |
||
11 | use Illuminate\Contracts\Broadcasting\ShouldBroadcast; |
||
12 | use Mydnic\Kustomer\Feedback; |
||
13 | |||
14 | class NewFeedback implements ShouldBroadcast |
||
15 | { |
||
16 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
17 | |||
18 | public $feedback; |
||
19 | |||
20 | /** |
||
21 | * Create a new event instance. |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | public function __construct(Feedback $feedback) |
||
26 | { |
||
27 | $this->feedback = $feedback; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Get the channels the event should broadcast on. |
||
32 | * |
||
33 | * @return \Illuminate\Broadcasting\Channel|array |
||
34 | */ |
||
35 | public function broadcastOn() |
||
36 | { |
||
37 | // return new PrivateChannel('channel-name'); |
||
38 | } |
||
39 | } |
||
40 |