diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/TableComponent.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/TableComponent.php b/src/TableComponent.php index da31a90..b8fae6a 100644 --- a/src/TableComponent.php +++ b/src/TableComponent.php @@ -6,6 +6,7 @@ use Livewire\Component; use Livewire\WithPagination; use Livewire\Attributes\Url; +use Illuminate\Pagination\Paginator; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Str; @@ -94,6 +95,8 @@ abstract class TableComponent extends Component $allColumns = $this->getColumns(); $columns = $allColumns->filter(fn($c) => in_array($c->name,$this->activeColumns)); + Paginator::defaultView('laralight-tables::pagination'); + return view('laralight-tables::table', [ 'searchable' => $this->searchable, 'searchDebounce' => $this->searchDebounce, |