/**
  * 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'));
 }
 /**
  * Remove the specified Brand from storage.
  * DELETE /brands/{id}
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->brandRepository->apiDeleteOrFail($id);
     return $this->sendResponse($id, "Brand deleted successfully");
 }