Browse Source

trying to fix dropdown menus, mkIV

master
jk 3 years ago
parent
commit
27e293820e
  1. 4
      app/Http/Controllers/SummarieController.php

4
app/Http/Controllers/SummarieController.php

@ -148,8 +148,8 @@ class SummarieController extends Controller
{
$lastID = Summarie::orderBy('beer_id','desc')->take(1)->value('beer_id');
$beer_id = number_format($lastID) + 1;
$brewery_list = Brewerie::orderBy('name')->pluck('name', 'id');
$data = array('beer_id'=>$beer_id, 'brewery_list'=>$brewery_list);
$breweries = Brewerie::orderBy('name')->pluck('name', 'id');
$data = array('beer_id'=>$beer_id, 'breweries'=>$breweries);
return view('beers.create')->with($data);
}

Loading…
Cancel
Save