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