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')) {