User()->unreadNotifications->where('id', $id)->markAsRead();
return back();
}
public function delete()
{
$notifications = Auth()->User()->notifications()->get();
foreach($notifications as $notification) {
$notification->delete();
}
return back();
}
}