Skip to content

Commit

Permalink
take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Jan 13, 2021
1 parent bcf818f commit b1fd05e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Concerns/BuildsQueries.php
Expand Up @@ -160,7 +160,7 @@ public function first($columns = ['*'])
*/
public function sole($columns = ['*'])
{
$result = $this->get($columns);
$result = $this->take(2)->get($columns);

if ($result->isEmpty()) {
throw new NoRecordsFoundException();
Expand Down

0 comments on commit b1fd05e

Please sign in to comment.