From 48c087dc57f662ac5408f8bf2a10af114188226c Mon Sep 17 00:00:00 2001 From: jk Date: Tue, 22 Jun 2021 12:02:25 +0100 Subject: [PATCH] hops refactor mkV --- app/Http/Controllers/GrainController.php | 2 +- resources/views/hops/edit.blade.php | 4 ++-- resources/views/hops/index.blade.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/GrainController.php b/app/Http/Controllers/GrainController.php index 026ff25..09d9282 100644 --- a/app/Http/Controllers/GrainController.php +++ b/app/Http/Controllers/GrainController.php @@ -60,7 +60,7 @@ class GrainController extends Controller } $grain->save(); - return redirect('/grains')->with('success', 'Grain Added'); + return redirect('/grains')->with('success', 'Grain Added!'); } public function edit($id){ diff --git a/resources/views/hops/edit.blade.php b/resources/views/hops/edit.blade.php index 067ab9b..f875604 100644 --- a/resources/views/hops/edit.blade.php +++ b/resources/views/hops/edit.blade.php @@ -22,11 +22,11 @@
- + bitter == 1) checked @endif />
- + aroma == 1) checked @endif />
diff --git a/resources/views/hops/index.blade.php b/resources/views/hops/index.blade.php index 61e6b9f..7441eb6 100644 --- a/resources/views/hops/index.blade.php +++ b/resources/views/hops/index.blade.php @@ -22,8 +22,8 @@ Profile Bittering? Aroma? - @if (Auth::user()->isAdmin())Admin@endif +