|
@ -38,8 +38,8 @@ class FermentationController extends Controller |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// create project
|
|
|
// create project
|
|
|
$yeast = new Fermentations; |
|
|
|
|
|
$lastID = Fermentations::orderBy('id','desc')->take(1)->value('id'); |
|
|
|
|
|
|
|
|
$yeast = new Fermentation; |
|
|
|
|
|
$lastID = Fermentation::orderBy('id','desc')->take(1)->value('id'); |
|
|
$yeast->id = number_format($lastID) + 1; |
|
|
$yeast->id = number_format($lastID) + 1; |
|
|
$yeast->beer_id = $request->input('beer_id'); |
|
|
$yeast->beer_id = $request->input('beer_id'); |
|
|
$yeast->yeast_id = $request->input('yeast_id'); |
|
|
$yeast->yeast_id = $request->input('yeast_id'); |
|
|