mirror of
https://github.com/jonathan-martz/pocketbase-php-sdk.git
synced 2026-04-03 07:27:42 +00:00
return response of create
This commit is contained in:
@@ -78,9 +78,9 @@ class Collection
|
|||||||
* @param array $queryParams
|
* @param array $queryParams
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function create(array $bodyParams = [], array $queryParams = []): void
|
public function create(array $bodyParams = [], array $queryParams = []): string
|
||||||
{
|
{
|
||||||
$this->doRequest($this->url . "/api/collections/" . $this->collection . "/records", 'POST', json_encode($bodyParams));
|
return $this->doRequest($this->url . "/api/collections/" . $this->collection . "/records", 'POST', json_encode($bodyParams));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user