diff options
author | Sam Light <samlight1994@gmail.com> | 2025-01-19 00:43:21 +0000 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2025-01-19 00:43:21 +0000 |
commit | 08ce4949f964790a77f580cb19ba40818fa316ad (patch) | |
tree | e4634b402931e01285d017a5c854ce8e271a59f4 /workbench/app/Livewire | |
parent | 27a26440b3104059ef890c95af850b9a43926a31 (diff) |
Setup search in test table
Diffstat (limited to 'workbench/app/Livewire')
-rw-r--r-- | workbench/app/Livewire/ProductsTable.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/workbench/app/Livewire/ProductsTable.php b/workbench/app/Livewire/ProductsTable.php index 26137bc..3b327d9 100644 --- a/workbench/app/Livewire/ProductsTable.php +++ b/workbench/app/Livewire/ProductsTable.php @@ -7,10 +7,17 @@ use Workbench\App\Models\Product; use Lightscale\LaralightTables\TableComponent; use Lightscale\LaralightTables\Columns\Column; +use Illuminate\Database\Eloquent\Builder; + class ProductsTable extends TableComponent { protected $model = Product::class; + protected function search(Builder $q, string $s): void + { + $q->search($s); + } + public function columns(): array { return [ |