Skip to content

Commit

Permalink
flip afterquerycallback
Browse files Browse the repository at this point in the history
  • Loading branch information
bert-w committed Feb 2, 2025
1 parent c9924d3 commit 18893a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3407,7 +3407,7 @@ public function pluck($column, $key = null)
// Revert to original values so future queries can use the previous selection.
[$this->columns, $this->fetchArgs] = $original;

return new Collection($this->applyAfterQueryCallbacks($queryResult));
return $this->applyAfterQueryCallbacks(new Collection($queryResult));
}

/**
Expand Down

0 comments on commit 18893a6

Please sign in to comment.