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