| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function markNotificationRead($id) |
||
| 12 | { |
||
| 13 | $notification = Auth::user()->notifications()->where('id', $id)->where('notifiable_id', Auth::user()->user_id)->first(); |
||
| 14 | Log::debug('Marked user notification as read for '.Auth::user()->full_name.'. Data - ', array($notification)); |
||
| 15 | $notification->markAsRead(); |
||
| 16 | |||
| 17 | return true; |
||
| 18 | } |
||
| 29 |