diff --git a/app/Http/Controllers/GrainController.php b/app/Http/Controllers/GrainController.php index a08360e..6cf99d0 100644 --- a/app/Http/Controllers/GrainController.php +++ b/app/Http/Controllers/GrainController.php @@ -65,8 +65,8 @@ class GrainController extends Controller } 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){