© 2026 Hedgehog Software, LLC
The from email field is required.
Imports\ImportColumn::make('from_email') ->ignoreBlankState() ->castStateUsing(function (?string $state): ?string { if (blank($state) or (\Str::upper($state) == 'NULL')) { return null; } return $state; }) Imports\ImportColumn::make('from_email') ->ignoreBlankState() ->fillRecordUsing(function ($record, string $state): void { if(\Str::upper($state) == 'NULL'){ $record->from_email = null; } $record->from_email = $state; })
$table->text('from_email')->nullable();