Skip to content

Commit d49d508

Browse files
add getQuery function on BaseRepository
1 parent e9619dd commit d49d508

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Repository/BaseRepository.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ public function __construct(Model $model)
2222
$this->model = $model;
2323
}
2424

25+
/**
26+
* @return \Illuminate\Database\Eloquent\Builder
27+
*/
28+
public function getQuery()
29+
{
30+
return $this->model::query();
31+
}
32+
2533
/**
2634
* @return Collection
2735
*/

0 commit comments

Comments
 (0)