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