Browse Source

grains refactor mkIII

master
jk 3 years ago
parent
commit
79795c7448
  1. 4
      app/Http/Controllers/GrainController.php

4
app/Http/Controllers/GrainController.php

@ -65,8 +65,8 @@ class GrainController extends Controller
} }
public function edit($id){ public function edit($id){
$brewery = Brewerie::where('id', (int)$id)->first();
return view('breweries.edit')->with('brewery', $brewery);
$grain = Grain::where('id', (int)$id)->first();
return view('grains.edit')->with('grain', $grain);
} }
public function update(Request $request, $id){ public function update(Request $request, $id){

Loading…
Cancel
Save