Add plant code column to UserExporter and implement plant validation in UserImporter

This commit is contained in:
dhanabalan
2025-09-29 12:18:09 +05:30
parent 5f4945d997
commit af3ce0ea40
2 changed files with 29 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ class UserExporter extends Exporter
public static function getColumns(): array
{
static $rowNumber = 0;
return [
// ExportColumn::make('id')
// ->label('ID'),
@@ -23,6 +24,8 @@ class UserExporter extends Exporter
// Increment and return the row number
return ++$rowNumber;
}),
ExportColumn::make('plant.code')
->label('PLANT CODE'),
ExportColumn::make('name')
->label('NAME'),
ExportColumn::make('email')