mirror of
https://github.com/jonathan-martz/pocketbase-php-sdk.git
synced 2026-04-03 07:27:42 +00:00
return request instead of collection
This commit is contained in:
@@ -18,7 +18,7 @@ class Collection
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, $this->url . "/api/collections/".$this->collection."/records");
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
$output = new Collection(curl_exec($ch));
|
||||
$output = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
return json_decode($output, JSON_FORCE_OBJECT);
|
||||
|
||||
Reference in New Issue
Block a user