From 827a53363e7a03329d6e5972d9d9be99d17c889e Mon Sep 17 00:00:00 2001 From: Sam Light Date: Mon, 27 Jul 2026 22:00:55 +0100 Subject: Updated to support tighter laravel 13 order direction type --- src/TableComponent.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/TableComponent.php') diff --git a/src/TableComponent.php b/src/TableComponent.php index 516c8da..e36029e 100644 --- a/src/TableComponent.php +++ b/src/TableComponent.php @@ -17,6 +17,7 @@ use Lightscale\LaralightTables\Toolbar\Filter; use Livewire\Attributes\Url; use Livewire\Component; use Livewire\WithPagination; +use SortDirection; /** * @template TModel of Model @@ -64,8 +65,11 @@ abstract class TableComponent extends Component #[Url] public ?string $order = null; + /** + * @var SortDirection|'asc'|'desc'|null + */ #[Url] - public ?string $orderDirection = null; + public SortDirection|string|null $orderDirection = null; public function mount(): void { -- cgit v1.2.3