Browse Source

adding dropdown menus to adjuncts and beer create blade, mkII

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

2
app/Http/Controllers/SummarieController.php

@ -116,7 +116,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')->get()
$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