Skip to content

Commit b1ca34a

Browse files
committed
Apply scope when using pluck() method
1 parent 6b12883 commit b1ca34a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Eloquent/BaseRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function makeModel(): Model
6969

7070
public function pluck($column, $key = null): mixed
7171
{
72+
$this->applyScope();
7273
return $this->model->pluck($column, $key);
7374
}
7475

0 commit comments

Comments
 (0)