public function store(CheckoutRequest $request)
 {
     $data = $request->all();
     $clientId = $this->userRepository->find(Auth::user()->id)->client->id;
     $data['client_id'] = $clientId;
     $this->service->create($data);
     return redirect()->route('index.ordem');
 }
 public function store(CheckoutRequest $request)
 {
     $data = $request->all();
     $id = Authorizer::getResourceOwnerId();
     $clientId = $this->userRepository->find($id)->client->id;
     $data['client_id'] = $clientId;
     $o = $this->service->create($data);
     return $this->orderRepository->skipPresenter(false)->with($this->with)->find($o->id);
 }