From 29a97f2465dd52fc972ee2eca0652372b305747a Mon Sep 17 00:00:00 2001 From: jk Date: Tue, 22 Jun 2021 13:15:45 +0100 Subject: [PATCH] grainbills refactor mkIII --- app/Http/Controllers/GrainbillController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/GrainbillController.php b/app/Http/Controllers/GrainbillController.php index de84ccd..2405e97 100644 --- a/app/Http/Controllers/GrainbillController.php +++ b/app/Http/Controllers/GrainbillController.php @@ -57,7 +57,10 @@ class GrainbillController extends Controller public function update(Request $request, $id){ // validation $this->validate($request,[ - 'name' => 'required', + 'beer_id' => 'required', + 'grain_id' => 'required', + 'amount' => 'required', + 'grain_bill' => 'required', ]); $grain = Grainbill::where('id', (int)$id)->first();