Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function markNotification($id) |
||
41 | { |
||
42 | $notification = Auth::user()->notifications()->where('id', $id)->first(); |
||
43 | if($notification) |
||
44 | { |
||
45 | $notification->delete(); |
||
46 | Log::info('Notification ID-'.$id.' deleted for User ID-'.Auth::user()->user_id); |
||
47 | } |
||
48 | else |
||
49 | { |
||
50 | Log::notice('Notification ID-'.$id.' not found for user ID-'.Auth::user()->user_id); |
||
51 | } |
||
54 |