fixed filter in reports #32gvfmf
This commit is contained in:
parent
cac993b644
commit
251be5fb4a
@ -113,11 +113,13 @@ abstract class Model extends Eloquent implements Ownable
|
|||||||
return $query->paginate($limit);
|
return $query->paginate($limit);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function scopeUsingSearchString($query)
|
public function scopeUsingSearchString(Builder $query, string|null $string = null)
|
||||||
{
|
{
|
||||||
event(new SearchStringApplying($query));
|
event(new SearchStringApplying($query));
|
||||||
|
|
||||||
$this->getSearchStringManager()->updateBuilder($query, request('search'));
|
$string = $string ?: request('search');
|
||||||
|
|
||||||
|
$this->getSearchStringManager()->updateBuilder($query, $string);
|
||||||
|
|
||||||
event(new SearchStringApplied($query));
|
event(new SearchStringApplied($query));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user