diff --git a/app/Http/Controllers/SummarieController.php b/app/Http/Controllers/SummarieController.php index 4b4c54d..6dfb959 100644 --- a/app/Http/Controllers/SummarieController.php +++ b/app/Http/Controllers/SummarieController.php @@ -19,8 +19,8 @@ class SummarieController extends Controller $beers = Summarie::orderBy('name')->get(); foreach ($beers as $beer) { - $beer = DB::table('breweries')->where('id', $beer->beer_id)->value('name'); - $beer['beer'] = $beer; + $brewery = DB::table('breweries')->where('id', $beer->beer_id)->value('name'); + $beer['brewery'] = $brewery; } return view('beers.index')->with('beers', $beers); }