Bug Fixed
This commit is contained in:
parent
f80e738882
commit
c2bb8711a0
|
|
@ -131,11 +131,13 @@ class ClientApiController extends BaseAPIController
|
||||||
* )
|
* )
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public function update(UpdateClientRequest $request)
|
public function update(UpdateClientRequest $request, $publicId)
|
||||||
{
|
{
|
||||||
$client = $this->clientService->save($request->input());
|
$data = $request->input();
|
||||||
|
$data['public_id'] = $publicId;
|
||||||
|
$this->clientService->save($data);
|
||||||
|
|
||||||
$client = Client::scope($client->public_id)
|
$client = Client::scope($publicId)
|
||||||
->with('country', 'contacts', 'industry', 'size', 'currency')
|
->with('country', 'contacts', 'industry', 'size', 'currency')
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue