| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function handle(TechTipCommentCreatedEvent $event) |
||
| 21 | { |
||
| 22 | $userList = []; |
||
| 23 | |||
| 24 | $userList[] = TechTip::find($event->comment->tip_id)->first()->user_id; |
||
| 25 | $bookmarks = UserTechTipBookmark::where('tip_id', $event->comment->tip_id)->get()->toArray(); |
||
| 26 | |||
| 27 | $userList = User::find(array_merge($userList, $bookmarks)); |
||
| 28 | Notification::send($userList, new NewTechTipCommentNotification($event->comment, Auth::user())); |
||
| 29 | } |
||
| 31 |