Skip to content

Commit

Permalink
Do not overwrite user defined select (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentBean authored May 18, 2024
1 parent f0ffe56 commit 0d7615c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/HasSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ trait HasSelect
/** @param Builder<Model> $builder */
protected function applySelect(Builder $builder): static
{
$builder->select($builder->qualifyColumn('*'));
$builder->addSelect($builder->qualifyColumn('*'));

return $this;
}
Expand Down

0 comments on commit 0d7615c

Please sign in to comment.