Update CanSearchRecords.php

This commit is contained in:
Dan Harrin
2021-04-23 23:24:07 +01:00
parent 6674cde0b5
commit a2bb449b71
@@ -56,7 +56,7 @@ trait CanSearchRecords
return $query;
}
$query->where( function ($query) {
$query->where(function ($query) {
collect($this->getTable()->getColumns())
->filter(fn ($column) => $column->isSearchable())
->each(function ($column) use (&$query) {