WolfMoon
WolfMoon
FFilament
Created by WolfMoon on 3/11/2024 in #❓┊help
Drag and Drop with NestedSet
No description
4 replies
FFilament
Created by WolfMoon on 6/1/2023 in #❓┊help
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')
)
])
])
];
}
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(),
Tables\Columns\TextColumn::make('answers.value')
->label('Yanıtlar')
->searchable()
->sortable(),
This column not exported, i mean its coming empty in excel report.
5 replies
FFilament
Created by WolfMoon on 4/10/2023 in #❓┊help
Ordering navigation groups
Hey everyone, I have a question about the ordering navigation groups. I use the navigationGroup in 3 resources like this:
protected static ?string $navigationGroup = 'E-commerce';
protected static ?string $navigationGroup = 'E-commerce';
And also, I got one more page about the settings and its have a setting navigation group. In the this case i got 2 group. I wanna ordering this, already followed the docs (https://filamentphp.com/docs/2.x/admin/navigation#ordering-navigation-groups) but I got 404 error. I just edited appserviceprovider like the docs.
3 replies