fix 🐛 correct validation index
This commit is contained in:
parent
b4e0cdd896
commit
458b20f09c
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue