/** * حذف یک یا دسته ای از پستها * * @param Illuminate\Http\Request $request * @param int $Request * @return Response */ public function delete(Request $request) { $input = $request->all(); $SendParam = $input['SendParam']; $SendParam = json_decode($SendParam); if (is_array($SendParam->pst_ids)) { $this->PostRepository->deleteBatch($SendParam->pst_ids); } else { $this->PostRepository->delete($SendParam->pst_ids); } return response()->json(); }