Skip to content

Commit

Permalink
Merge pull request #20 from gitlog/patch-1
Browse files Browse the repository at this point in the history
fix: first
  • Loading branch information
evsign authored Oct 17, 2019
2 parents 695fa17 + 6487c47 commit cf1c878
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 cf1c878

Please sign in to comment.