All your service classes use the request method via GuzzleHttp.
The request method must be passed in uppercase; otherwise, a deprecation warning is logged.
Example:
public function updateOrCreate(
string $attributeGroupName,
array $model,
array $options = []
): void {
$this->request(
method: 'post',
relativeUrl: $this->resolvePath('/attributes/%s/translations', $attributeGroupName),
query: $options,
headers: [],
modelClass: null,
body: $model
);
}
public function updateOrCreate(
string $attributeGroupName,
array $model,
array $options = []
): void {
$this->request(
method: 'POST',
relativeUrl: $this->resolvePath('/attributes/%s/translations', $attributeGroupName),
query: $options,
headers: [],
modelClass: null,
body: $model
);
}
All your service classes use the request method via GuzzleHttp.
The request method must be passed in uppercase; otherwise, a deprecation warning is logged.
Example: