fix aircraft status field type in model

This commit is contained in:
Nabeel Shahzad
2018-03-30 21:45:11 -05:00
parent a3bfcf01b7
commit 9eb8ed1804
4 changed files with 10 additions and 4 deletions

View File

@@ -108,7 +108,12 @@ class ImportService extends Service
// turn it into a collection and run some filtering
$row = collect($row)->map(function ($val, $index) {
return trim($val);
$val = trim($val);
if($val === '') {
return null;
}
return $val;
})->toArray();
# Try to validate