Browse Source

trying to fix dropdown menus, mkIV

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

2
app/Http/Controllers/SummarieController.php

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

Loading…
Cancel
Save