public function destroyItem(Request $request, $id)
{
/** @var CategoryItem $item */
if (!($item = CategoryItem::find($request->get('id')))) {
throw new InvalidArgumentHttpException();
}
DB::beginTransaction();
try {
XeCategory::removeItem($item);
} catch (Exception $e) {
DB::rollBack();
throw $e;
}
DB::commit();
}