From 78bdf312e05218a4509e5f20fb1bc6fe94deefe9 Mon Sep 17 00:00:00 2001 From: Arjay Angeles Date: Mon, 2 Oct 2023 17:48:16 +0800 Subject: [PATCH] test: add new line --- tests/Integration/EloquentDataTableTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Integration/EloquentDataTableTest.php b/tests/Integration/EloquentDataTableTest.php index 4c94217d..afaa5560 100644 --- a/tests/Integration/EloquentDataTableTest.php +++ b/tests/Integration/EloquentDataTableTest.php @@ -192,6 +192,7 @@ protected function setUp(): void ->formatColumn('created_at', new DateFormatter('Y-m-d')) ->toJson(); }); + $router->get('/eloquent/formatColumn-closure', function (DataTables $dataTable) { return $dataTable->eloquent(User::query()) ->formatColumn('created_at', fn ($value, $row) => Carbon::parse($value)->format('Y-m-d'))