From 6fed8a99625e4075ab8b3303e19c57982126062e Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sun, 28 Apr 2019 22:30:15 -0500 Subject: [PATCH] public contract? --- app/Http/Controllers/ContractController.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/Http/Controllers/ContractController.php b/app/Http/Controllers/ContractController.php index 297df77fc..a2d6b358d 100644 --- a/app/Http/Controllers/ContractController.php +++ b/app/Http/Controllers/ContractController.php @@ -171,17 +171,11 @@ class ContractController extends Controller /** * Controller function to delete a bid */ - public function deleteBid(Request $request) { - //Validate the request from the previous page - $this->validate($request, [ - 'id' => 'required', - 'contract_id' => 'required', - ]); + public function deleteBid($id) { //Delete the bid entry from the database Bid::where([ - 'id' => $request->id, - 'contract_id' => $request->contract_id, + 'id' => $id, ])->delete(); return redirect('/contracts/display/public')->with('success', 'Bid deleted.');