|
@ -116,7 +116,7 @@ class SummarieController extends Controller |
|
|
} |
|
|
} |
|
|
public function create() |
|
|
public function create() |
|
|
{ |
|
|
{ |
|
|
$lastID = Summarie::orderBy('beer_id','desc')->value('beer_id'); |
|
|
|
|
|
|
|
|
$lastID = Summarie::orderBy('beer_id','desc')->first()->value('beer_id'); |
|
|
$beer_id = number_format($lastID) + 1; |
|
|
$beer_id = number_format($lastID) + 1; |
|
|
return view('beers.create')->with('beer_id', $beer_id); |
|
|
return view('beers.create')->with('beer_id', $beer_id); |
|
|
|
|
|
|
|
|