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 |
||
19 | 4 | public function deleteNotification($id) |
|
20 | { |
||
21 | 4 | $notification = Auth::user()->notifications()->where('id', $id)->where('notifiable_id', Auth::user()->user_id)->first(); |
|
22 | 4 | Log::debug('Deleted user notification for '.Auth::user()->full_name.'. Data - ', array($notification)); |
|
23 | 4 | $notification->delete(); |
|
24 | |||
25 | return true; |
||
26 | } |
||
29 |