From 6dd73ba8985664b89c616deb36ad62918916bb80 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 29 Apr 2019 00:23:57 -0500 Subject: [PATCH] modify bids --- app/Http/Controllers/ContractController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/ContractController.php b/app/Http/Controllers/ContractController.php index 36965799c..fd2413184 100644 --- a/app/Http/Controllers/ContractController.php +++ b/app/Http/Controllers/ContractController.php @@ -185,10 +185,10 @@ class ContractController extends Controller */ public function displayModifyBid($id) { //With the bid id number, look up the bid in the database to get the contract information - $bid = Bid::where(['id' => $id])->get()->toArray(); - dd($bid); + $bid = Bid::where(['id' => $id])->get(); + //Retrieve the contract from the database - $contract = Contract::where(['id' => $bid['contract_id']])->get()->toArray(); + $contract = Contract::where(['id' => $bid->contract_id])->get()->toArray(); return view('contracts.modifybid')->with('contract', $contract); }