Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
8 | class UserNotifications |
||
9 | { |
||
10 | public function markNotificationRead($id) |
||
11 | { |
||
12 | $notification = Auth::user()->notifications()->where('id', $id)->where('notifiable_id', Auth::user()->user_id)->first(); |
||
13 | Log::debug('Marked user notification as read for '.Auth::user()->full_name.'. Data - ', array($notification)); |
||
14 | $notification->markAsRead(); |
||
15 | |||
16 | return true; |
||
17 | } |
||
18 | |||
19 | public function deleteNotification($id) |
||
26 | } |
||
27 | |||
29 |