protected function setDeleted(array $ids, $isDeleted) { Notification::whereIn('id', $ids)->update(['is_deleted' => $isDeleted]); }