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