Skip to content

Commit

Permalink
Return collection (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Jul 18, 2022
1 parent 3eab5a3 commit a0b4b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Engines/DatabaseEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public function mapIds($results)
$results = $results['results'];

return count($results) > 0
? $results->modelKeys()
? collect($results->modelKeys())
: collect();
}

Expand Down

0 comments on commit a0b4b43

Please sign in to comment.