|
@ -75,7 +75,7 @@ class GrainController extends Controller |
|
|
'name' => 'required', |
|
|
'name' => 'required', |
|
|
]); |
|
|
]); |
|
|
|
|
|
|
|
|
$grain = Grain::where('id', $id)->first(); |
|
|
|
|
|
|
|
|
$grain = Grain::where('id', (int)$id)->first(); |
|
|
$grain->name = $request->input('name'); |
|
|
$grain->name = $request->input('name'); |
|
|
if ($request->input('flavour')) |
|
|
if ($request->input('flavour')) |
|
|
{ |
|
|
{ |
|
|