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.
2 parents 17119f7 + a8aed90 commit 278ea26Copy full SHA for 278ea26
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