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