/** * Remove the specified PointPrice from storage. * * @param int $id * * @return Response */ public function destroy($id) { $pointPrice = $this->pointPriceRepository->find($id); if (empty($pointPrice)) { Flash::error('PointPrice not found'); return redirect(route('pointPrices.index')); } $this->pointPriceRepository->delete($id); Flash::success('PointPrice deleted successfully.'); return redirect(route('pointPrices.index')); }