From 32486d50b0d1172bfcfad81920f3d3625af2bec1 Mon Sep 17 00:00:00 2001 From: s421507 Date: Thu, 27 Feb 2020 02:04:39 +0100 Subject: [PATCH] OperationsController vehicles fix --- .idea/workspace.xml | 13 ++++--------- app/Http/Controllers/operationsController.php | 4 ++-- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 77a2a5e..b0db4a4 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,15 +2,8 @@ - - - - - - - @@ -203,9 +197,10 @@ - - + + + diff --git a/app/Http/Controllers/operationsController.php b/app/Http/Controllers/operationsController.php index 30f7175..d32a094 100644 --- a/app/Http/Controllers/operationsController.php +++ b/app/Http/Controllers/operationsController.php @@ -160,8 +160,8 @@ class operationsController extends Controller for($count = 0; $count < count($operationDriver); $count++){ $operationsTrucks = operationsTrucks::create([ 'operationID' => $operations->id, - 'truckID' => $operationDriver[$count], - 'driverID' => $operationVehicle[$count] + 'truckID' => $operationVehicle[$count], + 'driverID' => $operationDriver[$count] ]); }