Browse Source

grains refactor mkIV

master
jk 3 years ago
parent
commit
b1c1cf7acd
  1. 2
      app/Http/Controllers/GrainController.php
  2. 1
      resources/views/grains/index.blade.php

2
app/Http/Controllers/GrainController.php

@ -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'))
{ {

1
resources/views/grains/index.blade.php

@ -38,3 +38,4 @@
</div> </div>
</div> </div>
</div> </div>
@endsection
Loading…
Cancel
Save