execute( $request->except(['account_id', 'contact_id']) + [ 'account_id' => auth()->user()->account_id, 'contact_id' => $contactId, ] ); } catch (ModelNotFoundException $e) { return $this->respondNotFound(); } catch (ValidationException $e) { return $this->respondValidatorFailed($e->validator); } catch (QueryException $e) { return $this->respondInvalidQuery(); } return new ContactResource($contact); } }