diff --git a/app/Http/Controllers/ContractController.php b/app/Http/Controllers/ContractController.php index a2e0ec930..64dadd46b 100644 --- a/app/Http/Controllers/ContractController.php +++ b/app/Http/Controllers/ContractController.php @@ -186,9 +186,9 @@ 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])->first(); - dd($bid); + //Retrieve the contract from the database - $contract = Contract::where(['id' => $bid->contract_id])->get()->toArray(); + $contract = Contract::where(['id' => $bid->contract_id])->first()->toArray(); return view('contracts.modifybid')->with('contract', $contract) ->with('bid', $bid);