From e79f0eb58f6af05e8b43b31376e69272474ea8cd Mon Sep 17 00:00:00 2001 From: jk Date: Tue, 22 Jun 2021 14:18:51 +0100 Subject: [PATCH] fermentations refactor mkIII --- app/Http/Controllers/FermentationController.php | 4 ++-- resources/views/fermentations/create.blade.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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')
-

Add a Grain

+

Add a Fermentation Step

@if ($errors->any())
@@ -36,7 +36,7 @@
- +