Browse Source

beers refactor mkXX

master
jk 3 years ago
parent
commit
eb5da29648
  1. 2
      app/Http/Controllers/SummarieController.php

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

Loading…
Cancel
Save