Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Aug 1, 2021
1 parent 4539247 commit 0dfefe9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Grid/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -671,13 +671,13 @@ public function getSortDescMethods()
}

/**
* @param \Illuminate\Database\Query\Builder $query
* @param Builder $query
* @param bool $fetch
* @param string[] $columns
*
* @return mixed
* @return Builder|Paginator|Collection
*/
public function apply($query, bool $fetch = true, $columns = null)
public function apply($query, bool $fetch = false, $columns = null)
{
$this->getQueries()->unique()->each(function ($value) use (&$query, $fetch, $columns) {
if (! $fetch && in_array($value['method'], ['paginate', 'simplePaginate', 'get'], true)) {
Expand Down

0 comments on commit 0dfefe9

Please sign in to comment.