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