From 458b20f09cec9ce3976e3568e258d3a45ca28ea3 Mon Sep 17 00:00:00 2001 From: System User Date: Mon, 13 Apr 2026 14:11:14 +0200 Subject: [PATCH] fix :bug: correct validation index --- app/Http/Controllers/Bo/CategoryApproachesController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Bo/CategoryApproachesController.php b/app/Http/Controllers/Bo/CategoryApproachesController.php index 574ecd7c..591a1257 100644 --- a/app/Http/Controllers/Bo/CategoryApproachesController.php +++ b/app/Http/Controllers/Bo/CategoryApproachesController.php @@ -98,7 +98,7 @@ class CategoryApproachesController extends Controller }); return redirect()->back() ->with('error', trans('crud.messages.cannot_be_created', [ - 'model' => Str::ucfirst(trans('validation.custom.custom')) + 'model' => Str::ucfirst(trans('validation.custom.category')) ])); } @@ -162,7 +162,7 @@ class CategoryApproachesController extends Controller if (CategoryApproach::count() === CategoryApproach::MIN_CATEGORIES) { return redirect() ->route('bo.categories.approaches.index') - ->with('error', "Limite atteinte : vous ne pouvez pas supprimer tous les catégories (une catégorie minimum)."); + ->with('error', "Limite atteinte : vous ne pouvez pas supprimer toutes les catégories (une catégorie minimum)."); } if ($categories_approach->delete()) { return redirect()