Skip to content

Commit

Permalink
test: add new line
Browse files Browse the repository at this point in the history
  • Loading branch information
yajra committed Oct 2, 2023
1 parent 7ac0af1 commit 78bdf31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Integration/EloquentDataTableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 78bdf31

Please sign in to comment.