fix 🐛 correct validation index

This commit is contained in:
System User 2026-04-13 14:11:14 +02:00
parent b4e0cdd896
commit 458b20f09c

View file

@ -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()