From b5378eff6456abf6dbde1f02b050af02b90fbc75 Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Tue, 5 Apr 2022 16:12:31 -0500 Subject: [PATCH] Fix several typos --- app/Http/Controllers/Accessories/AccessoriesController.php | 2 +- app/Http/Controllers/Components/ComponentsController.php | 2 +- app/Http/Controllers/Consumables/ConsumablesController.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Accessories/AccessoriesController.php b/app/Http/Controllers/Accessories/AccessoriesController.php index e6a1e5876d..d1af79adf1 100755 --- a/app/Http/Controllers/Accessories/AccessoriesController.php +++ b/app/Http/Controllers/Accessories/AccessoriesController.php @@ -131,7 +131,7 @@ class AccessoriesController extends Controller return redirect()->route('accessories.index')->with('error', trans('admin/accessories/message.does_not_exist')); } - $min = $accessory->numCHeckedOut(); + $min = $accessory->numCheckedOut(); $validator = Validator::make($request->all(), [ "qty" => "required|numeric|min:$min" ]); diff --git a/app/Http/Controllers/Components/ComponentsController.php b/app/Http/Controllers/Components/ComponentsController.php index 7e606fec26..f943a71a2e 100644 --- a/app/Http/Controllers/Components/ComponentsController.php +++ b/app/Http/Controllers/Components/ComponentsController.php @@ -129,7 +129,7 @@ class ComponentsController extends Controller if (is_null($component = Component::find($componentId))) { return redirect()->route('components.index')->with('error', trans('admin/components/message.does_not_exist')); } - $min = $component->numCHeckedOut(); + $min = $component->numCheckedOut(); $validator = Validator::make($request->all(), [ 'qty' => "required|numeric|min:$min", ]); diff --git a/app/Http/Controllers/Consumables/ConsumablesController.php b/app/Http/Controllers/Consumables/ConsumablesController.php index 2ef123d096..f068e9868d 100644 --- a/app/Http/Controllers/Consumables/ConsumablesController.php +++ b/app/Http/Controllers/Consumables/ConsumablesController.php @@ -129,7 +129,7 @@ class ConsumablesController extends Controller return redirect()->route('consumables.index')->with('error', trans('admin/consumables/message.does_not_exist')); } - $min = $consumable->numCHeckedOut(); + $min = $consumable->numCheckedOut(); $validator = Validator::make($request->all(), [ "qty" => "required|numeric|min:$min" ]);