laravel / nova-issues

554 stars 35 forks source link

Value returned by displayUsing from a datetime field is not displayed on index #4685

Closed daniouyea closed 2 years ago

daniouyea commented 2 years ago

Description:

Value returned by displayUsing from a datetime field is not displayed on index.

Detailed steps to reproduce the issue on a fresh Nova installation:

Create a resource with a datetime field.

DateTime::make('Date')
    ->onlyOnIndex()
    ->displayUsing(fn ($value) => "test"),

The field is shown empty.

crynobone commented 2 years ago

Duplicate of https://github.com/laravel/nova-issues/issues/4665, has been fixed but pending next release.