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