export format column

Hi everyone,

Can anyone explain how to set up ExportColumn to use a numeric value?

I tried using formatStateUsing, but it is still not working:

ExportColumn::make('balance')
                ->formatStateUsing(fn(int $state): int => $state);


The result is still a TEXT value (as shown in the screenshot).
image.png
Was this page helpful?