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);