middleware('auth'); } public function index($breweryID) { $breweries = Brewerie::where('id', (int)$breweryID)->get(); $beers = Summarie::where('brewery_id', $breweryID)->get(); $data = array('breweries'=>$breweries, 'beers'=>$beers); return view('brewery', compact('breweries', 'beers')); } }