From 195366e5ded656e5204f4c1ed9a2ba8a01ccf355 Mon Sep 17 00:00:00 2001 From: Achyut Neupane Date: Tue, 31 Dec 2024 19:30:34 +0545 Subject: [PATCH] In CanGenerateTables trait --- .../tables/src/Commands/Concerns/CanGenerateTables.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/tables/src/Commands/Concerns/CanGenerateTables.php b/packages/tables/src/Commands/Concerns/CanGenerateTables.php index 113fbf68abd..c61acded957 100644 --- a/packages/tables/src/Commands/Concerns/CanGenerateTables.php +++ b/packages/tables/src/Commands/Concerns/CanGenerateTables.php @@ -91,6 +91,13 @@ protected function getResourceTableColumns(string $model): string $columnData['sortable'] = []; } + if (in_array($type['name'], [ + 'time', + ])) { + $columnData['time'] = []; + $columnData['sortable'] = []; + } + if (in_array($type['name'], [ 'datetime', 'timestamp',