|
@ -57,7 +57,10 @@ class GrainbillController extends Controller |
|
|
public function update(Request $request, $id){ |
|
|
public function update(Request $request, $id){ |
|
|
// validation
|
|
|
// validation
|
|
|
$this->validate($request,[ |
|
|
$this->validate($request,[ |
|
|
'name' => 'required', |
|
|
|
|
|
|
|
|
'beer_id' => 'required', |
|
|
|
|
|
'grain_id' => 'required', |
|
|
|
|
|
'amount' => 'required', |
|
|
|
|
|
'grain_bill' => 'required', |
|
|
]); |
|
|
]); |
|
|
|
|
|
|
|
|
$grain = Grainbill::where('id', (int)$id)->first(); |
|
|
$grain = Grainbill::where('id', (int)$id)->first(); |
|
|