diff options
| author | Sam Light <samlight1994@gmail.com> | 2026-07-27 22:00:55 +0100 |
|---|---|---|
| committer | Sam Light <samlight1994@gmail.com> | 2026-07-27 22:00:55 +0100 |
| commit | 827a53363e7a03329d6e5972d9d9be99d17c889e (patch) | |
| tree | 28875bc15014a0acab23e2d9a9d66a1873bb5e72 /src/TableComponent.php | |
| parent | 662efa20b3e3d4834a487eb98f69a3a3ea35ccec (diff) | |
Updated to support tighter laravel 13 order direction type
Diffstat (limited to 'src/TableComponent.php')
| -rw-r--r-- | src/TableComponent.php | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |
