Importer fails rows with blank email fields when the email rule is applied to the column
I generated an importer and it intelligently added the email rule to an email column. The email column is not required - empty emails are allowed. However, the import fails on the email rule when the email is empty. So for a non-required email field, the email rule is useless.
Apologies if I'm missing something obvious. Is there a way around this?
Solution:Jump to solution
Figured it out immediately after posting π
The solution is to add a
nullable
rule to the column along with the 'email' rule:
```php
ImportColumn::make('email')...1 Reply
Solution
Figured it out immediately after posting π
The solution is to add a
nullable
rule to the column along with the 'email' rule: