From 748601064cf110b3091da8f2e28ec22ad9efcafc Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 18 Jul 2019 09:54:03 -0400 Subject: [PATCH] Fix Validator import --- app/Services/ImportService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php index 55908010..0057a865 100644 --- a/app/Services/ImportService.php +++ b/app/Services/ImportService.php @@ -13,8 +13,8 @@ use App\Services\ImportExport\ExpenseImporter; use App\Services\ImportExport\FareImporter; use App\Services\ImportExport\FlightImporter; use App\Services\ImportExport\SubfleetImporter; -use Illuminate\Contracts\Validation\Validator; use Illuminate\Support\Facades\Log; +use Illuminate\Support\Facades\Validator; use Illuminate\Validation\ValidationException; use League\Csv\Exception; use League\Csv\Reader; @@ -119,7 +119,7 @@ class ImportService extends Service $row = collect($row)->map(function ($val, $index) { $val = trim($val); if ($val === '') { - return; + return null; } return $val;