diff --git a/app/Http/Controllers/FermentationController.php b/app/Http/Controllers/FermentationController.php index fcb0b02..722db05 100644 --- a/app/Http/Controllers/FermentationController.php +++ b/app/Http/Controllers/FermentationController.php @@ -51,7 +51,7 @@ class FermentationController extends Controller } $yeast->save(); - return redirect('/fermnentations')->with('success', 'Fermentation Step Added'); + return redirect('/fermentations')->with('success', 'Fermentation Step Added'); } public function edit($id){ $fermentation = Fermentation::where('id', (int)$id)->first(); diff --git a/resources/views/fermentation/edit.blade.php b/resources/views/fermentation/edit.blade.php new file mode 100644 index 0000000..96032a5 --- /dev/null +++ b/resources/views/fermentation/edit.blade.php @@ -0,0 +1,43 @@ +@extends('fermentations') +@section('main')
+
+

Update Fermentation Step

+ + @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+
+ @endif +
+ @method('PATCH') + @csrf +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
+@endsection