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