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 f3a15cb commit e38a108Copy full SHA for e38a108
src/Database/Eloquent/FMEloquentBuilder.php
@@ -317,14 +317,14 @@ public function count($columns = '*'): int
317
$query = $this->query->limit(1);
318
try {
319
$response = $this->getQuery()->getConnection()->performFind($query);
320
+ $count = $response['response']['dataInfo']['foundCount'];
321
} catch (FileMakerDataApiException $e) {
322
if ($e->getCode() == 401) {
323
$count = 0;
324
} else {
325
throw $e;
326
}
327
- $count = $response['response']['dataInfo']['foundCount'];
328
return $count;
329
330
0 commit comments