Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
35 | public function broadcastOn() |
||
36 | { |
||
37 | $namePieces = explode('\\', $this->comment->commentable_type); |
||
38 | $requiredName = Str::lower(Arr::last($namePieces)); |
||
39 | $requiredName = Str::plural($requiredName); |
||
40 | |||
41 | return new PrivateChannel('comments-'.$requiredName.'-'.$this->comment->commentable_id); |
||
42 | } |
||
56 |