From bb84b15f3b099a82d54be7552811cb057fa32270 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 7 Aug 2020 13:50:16 -0500 Subject: [PATCH] supply chain controller --- app/Http/Controllers/Contracts/SupplyChainController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Contracts/SupplyChainController.php b/app/Http/Controllers/Contracts/SupplyChainController.php index 3cd4d28ee..cabb4f0c5 100644 --- a/app/Http/Controllers/Contracts/SupplyChainController.php +++ b/app/Http/Controllers/Contracts/SupplyChainController.php @@ -314,12 +314,12 @@ class SupplyChainController extends Controller $bid->save(); //Update the database entry for the supply chain contract bid number - $numBids = SupplyChainContract::where([ + $num = SupplyChainContract::where([ 'contract_id' => $request->contract_id, ])->select('bids')->get(); //Increase the number of bids by 1 - $numBids++; + $numBids = $num->bids + 1; //Update the database SupplyChainContract::where([