We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17119f7 commit a8aed90Copy full SHA for a8aed90
src/Api.php
@@ -54,7 +54,8 @@ public function __call($name, $arguments)
54
55
preg_match('/^(get|create|update|delete)([\w\-_\/]+?)$/', $name, $matches);
56
57
- $endpoint = strtolower($matches[2]);
+ $endpoint = lcfirst($matches[2]);
58
+
59
if ('get' === $matches[1]) {
60
if (array_key_exists(0, $arguments) && !is_array($arguments[0])) {
61
return $this->findOne($endpoint, ...$arguments);
0 commit comments