From c6f423087d1f170bb28a1d2eafcabfb6ff937b77 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Fri, 23 Mar 2018 10:37:34 -0500 Subject: [PATCH] fix failed to error --- app/Console/Commands/ImportCsv.php | 4 ++-- app/Http/Controllers/Admin/AircraftController.php | 2 +- app/Http/Controllers/Admin/FareController.php | 2 +- app/Http/Controllers/Admin/FlightController.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Console/Commands/ImportCsv.php b/app/Console/Commands/ImportCsv.php index c3bc0065..dceb3374 100644 --- a/app/Console/Commands/ImportCsv.php +++ b/app/Console/Commands/ImportCsv.php @@ -31,7 +31,7 @@ class ImportCsv extends Command /** * @return mixed|void - * @throws \League\Csv\Exception + * @throws \Illuminate\Validation\ValidationException */ public function handle() { @@ -52,7 +52,7 @@ class ImportCsv extends Command $this->info($line); } - foreach ($status['failed'] as $line) { + foreach ($status['errors'] as $line) { $this->error($line); } } diff --git a/app/Http/Controllers/Admin/AircraftController.php b/app/Http/Controllers/Admin/AircraftController.php index cc06d0c7..74e870e7 100644 --- a/app/Http/Controllers/Admin/AircraftController.php +++ b/app/Http/Controllers/Admin/AircraftController.php @@ -182,7 +182,7 @@ class AircraftController extends Controller { $logs = [ 'success' => [], - 'failed' => [], + 'errors' => [], ]; if ($request->isMethod('post')) { diff --git a/app/Http/Controllers/Admin/FareController.php b/app/Http/Controllers/Admin/FareController.php index 721d0b9f..7aa42fb3 100644 --- a/app/Http/Controllers/Admin/FareController.php +++ b/app/Http/Controllers/Admin/FareController.php @@ -179,7 +179,7 @@ class FareController extends Controller { $logs = [ 'success' => [], - 'failed' => [], + 'errors' => [], ]; if ($request->isMethod('post')) { diff --git a/app/Http/Controllers/Admin/FlightController.php b/app/Http/Controllers/Admin/FlightController.php index 01bbd045..ba3682b1 100644 --- a/app/Http/Controllers/Admin/FlightController.php +++ b/app/Http/Controllers/Admin/FlightController.php @@ -349,7 +349,7 @@ class FlightController extends Controller { $logs = [ 'success' => [], - 'failed' => [], + 'errors' => [], ]; if ($request->isMethod('post')) {