public function store(CheckoutRequest $request)
 {
     $data = $request->all();
     $clientId = $this->userRepository->find(Auth::user()->id)->client->id;
     $data['client_id'] = $clientId;
     $this->orderService->create($data);
     return redirect()->route('customer.order.index');
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(CheckoutRequest $request)
 {
     $data = $request->all();
     $id = Authorizer::getResourceOwnerId();
     $clientId = $this->userRepository->find($id)->client->id;
     $data['client_id'] = $clientId;
     $order = $this->orderService->create($data);
     return $this->orderRepository->skipPresenter(false)->with($this->with)->find($order->id);
 }