store($options); } /** * Create an ApiResource using a constructed instance. * * @param array $options * * @return $this */ public function store(array $options = []) { $response = $this->getRequestFactory() ->createRequest('POST', static::getBasePath(), $options) ->setJson($this->toArray()) ->send(); return $this->mergeAttributes(is_null($attributes = $response->json()) ? [] : $attributes); } }