UsmanFESF
export excel with serial number
Hello, I want to add new Filament\Actions\Exports\ExportColumn field in my exporter that should display serial number of the records in excel.
My current code which prints 1 for every record, it isnt incrementing:
public static function getColumns(): array
{
$rowNumber = 1;
return [
ExportColumn::make('serial_number')
->label('SN.')
->state(function () use (&$rowNumber): string {
return $rowNumber++;
}),
ExportColumn::make('name'),
];
}
2 replies
Insert custom code into filament base Header and Footer
I'm trying to use package https://github.com/shailesh-ladumor/laravel-pwa that instructs me to add few line of code in the root blade file in header and footer section and I'm unable to figure out how to do that.
4 replies