Filament Excel exporting table data

Hey everyone, i have a problem about the exporting data from table.

Here is my code:
    protected function getTableBulkActions(): array
    {
        return [
            ExportBulkAction::make()->exports([
                ExcelExport::make('Table Data')
                    ->fromTable()
                    ->askForFilename($this->getTablePluralModelLabel() . ' ' . now()->format('d-m-Y H:i:s'))
                ->withColumns([
                    Column::make('answers.entry.created_at')
                        ->heading('Ekleme Tarihi')
                        ->formatStateUsing(fn($record) =>
                        $record->answers->first()->entry->created_at->format('d-m-Y H:i:s')
                    )
                ])
            ])
        ];
    }


It exports all columns with data but expect 2 column, and idk why its empty.

Here is that table columns coming empty:
                Tables\Columns\TextColumn::make('answers.value')
                    ->label('Yanıtlar')
                    ->searchable()
                    ->sortable(), 


This column not exported, i mean its coming empty in excel report.
Was this page helpful?