From eb5da29648db32e1e699191cbc38158b251f83a6 Mon Sep 17 00:00:00 2001 From: jk Date: Tue, 22 Jun 2021 10:50:53 +0100 Subject: [PATCH] beers refactor mkXX --- app/Http/Controllers/SummarieController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/SummarieController.php b/app/Http/Controllers/SummarieController.php index b33f2fa..6b2c39e 100644 --- a/app/Http/Controllers/SummarieController.php +++ b/app/Http/Controllers/SummarieController.php @@ -19,7 +19,7 @@ class SummarieController extends Controller $beers = Summarie::orderBy('name')->get(); foreach ($beers as $beer) { - $brewery = DB::table('breweries')->where('id', $beer->beer_id)->value('name'); + $brewery = DB::table('breweries')->where('id', $beer->brewery_id)->value('name'); $beer['brewery'] = $brewery; } return view('beers.index')->with('beers', $beers);