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