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