Skip to content

Commit

Permalink
fix: first
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlog authored Oct 17, 2019
1 parent 695fa17 commit 6487c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Integrations/Laravel/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function count()
*/
public function first()
{
$result = $this->get();
$result = $this->limit(1)->get();

return $result[0] ?? null;
}
Expand Down

0 comments on commit 6487c47

Please sign in to comment.