fix failed to error
This commit is contained in:
parent
182cb2d33b
commit
c6f423087d
@ -31,7 +31,7 @@ class ImportCsv extends Command
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return mixed|void
|
* @return mixed|void
|
||||||
* @throws \League\Csv\Exception
|
* @throws \Illuminate\Validation\ValidationException
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
@ -52,7 +52,7 @@ class ImportCsv extends Command
|
|||||||
$this->info($line);
|
$this->info($line);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($status['failed'] as $line) {
|
foreach ($status['errors'] as $line) {
|
||||||
$this->error($line);
|
$this->error($line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,7 @@ class AircraftController extends Controller
|
|||||||
{
|
{
|
||||||
$logs = [
|
$logs = [
|
||||||
'success' => [],
|
'success' => [],
|
||||||
'failed' => [],
|
'errors' => [],
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($request->isMethod('post')) {
|
if ($request->isMethod('post')) {
|
||||||
|
@ -179,7 +179,7 @@ class FareController extends Controller
|
|||||||
{
|
{
|
||||||
$logs = [
|
$logs = [
|
||||||
'success' => [],
|
'success' => [],
|
||||||
'failed' => [],
|
'errors' => [],
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($request->isMethod('post')) {
|
if ($request->isMethod('post')) {
|
||||||
|
@ -349,7 +349,7 @@ class FlightController extends Controller
|
|||||||
{
|
{
|
||||||
$logs = [
|
$logs = [
|
||||||
'success' => [],
|
'success' => [],
|
||||||
'failed' => [],
|
'errors' => [],
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($request->isMethod('post')) {
|
if ($request->isMethod('post')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user