diff --git a/app/Http/Controllers/YeastController.php b/app/Http/Controllers/YeastController.php index e8ab40f..98ecd77 100644 --- a/app/Http/Controllers/YeastController.php +++ b/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){