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();