Browse Source

grainbills refactor mkIII

master
jk 3 years ago
parent
commit
29a97f2465
  1. 5
      app/Http/Controllers/GrainbillController.php

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

Loading…
Cancel
Save