From 79795c7448be8b0c5aa5007eb1c8172e49821d2d Mon Sep 17 00:00:00 2001 From: jk Date: Tue, 22 Jun 2021 11:19:20 +0100 Subject: [PATCH] grains refactor mkIII --- app/Http/Controllers/GrainController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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){