mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-21 05:14:14 +00:00
Fix notification frontend
This commit is contained in:
@@ -51,8 +51,10 @@ class NotificationController extends Controller
|
||||
],200);
|
||||
}
|
||||
|
||||
public function readNotification(){
|
||||
$affected = DB::table('notifications')->Where('user_id', Auth::user()->id)->update(array('is_read' => 1));
|
||||
return response()->json("Read all message", 200);
|
||||
public function readNotification($notification_id){
|
||||
$affected = DB::table('notifications')
|
||||
->Where('id', $notification_id)
|
||||
->update(array('is_read' => 1));
|
||||
return response()->json("Read message", 200);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user