im trying to display a simple TextColumn but nothing shows up

it didnt even dd(). has_uploaded_receipt is not a column name in db, i just want to create a custom one and format based on user relation with receipt.

TextColumn::make('has_uploaded_receipt')
->label('Has uploaded receipt?')
->formatStateUsing( function ($record) {
                    dd($record);
                }),


original code:

                TextColumn::make('has_uploaded_receipt')->label('Has uploaded receipt?')->formatStateUsing(fn(User $record): string => $record->receipt() ? "Yes" : "No"),
Solution
nvm, i have solved it using default() instead
Was this page helpful?