Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
19 | public function deleteNotification($id) |
||
20 | { |
||
21 | $notification = Auth::user()->notifications()->where('id', $id)->where('notifiable_id', Auth::user()->user_id)->first(); |
||
22 | Log::debug('Deleted user notification for '.Auth::user()->full_name.'. Data - ', array($notification)); |
||
23 | $notification->delete(); |
||
24 | |||
25 | return true; |
||
26 | } |
||
29 |