From e744b8d67ef1d18050158dd523ba7d804c1c8528 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Sun, 30 Mar 2025 14:20:57 +0100 Subject: Filters, sorting, escaping and more.... --- src/Toolbar/ColumnSelect.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Toolbar/ColumnSelect.php') diff --git a/src/Toolbar/ColumnSelect.php b/src/Toolbar/ColumnSelect.php index a70c49a..9380650 100644 --- a/src/Toolbar/ColumnSelect.php +++ b/src/Toolbar/ColumnSelect.php @@ -11,7 +11,9 @@ class ColumnSelect extends Item public function render(): View { return view('laralight-tables::toolbar.column-select', [ - 'allColumns' => $this->getTable()->getColumns() + 'allColumns' => $this->getTable() + ->getColumns() + ->filter(fn($c) => $c->getShowInSelect()) ]); } } -- cgit v1.2.3