diff --git a/app/Http/Controllers/FermentationController.php b/app/Http/Controllers/FermentationController.php index 605a499..fcb0b02 100644 --- a/app/Http/Controllers/FermentationController.php +++ b/app/Http/Controllers/FermentationController.php @@ -38,8 +38,8 @@ class FermentationController extends Controller // 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->beer_id = $request->input('beer_id'); $yeast->yeast_id = $request->input('yeast_id'); diff --git a/resources/views/fermentations/create.blade.php b/resources/views/fermentations/create.blade.php index 9b5ebc3..1c57543 100644 --- a/resources/views/fermentations/create.blade.php +++ b/resources/views/fermentations/create.blade.php @@ -3,7 +3,7 @@ @section('main')