|
@ -19,7 +19,7 @@ class SummarieController extends Controller |
|
|
$beers = Summarie::orderBy('name')->get(); |
|
|
$beers = Summarie::orderBy('name')->get(); |
|
|
foreach ($beers as $beer) |
|
|
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; |
|
|
$beer['brewery'] = $brewery; |
|
|
} |
|
|
} |
|
|
return view('beers.index')->with('beers', $beers); |
|
|
return view('beers.index')->with('beers', $beers); |
|
|