Browse Source

yeasts refactor mkII

master
jk 3 years ago
parent
commit
7efc86bfed
  1. 4
      app/Http/Controllers/YeastController.php

4
app/Http/Controllers/YeastController.php

@ -55,8 +55,8 @@ class YeastController extends Controller
return redirect('/yeasts')->with('success', 'Yeast Added!');
}
public function edit($id){
$grain = Grain::where('id', (int)$id)->first();
return view('grains.edit')->with('grain', $grain);
$yeast = Yeast::where('id', (int)$id)->first();
return view('yeasts.edit')->with('yeast', $yeast);
}
public function update(Request $request, $id){

Loading…
Cancel
Save