minor_fix

This commit is contained in:
KNaveenraj-ladybird
2023-10-14 11:51:00 +05:30
parent 1e03d26426
commit 4952d57368
2 changed files with 3 additions and 3 deletions

View File

@@ -150,9 +150,9 @@ class CategoryController extends Controller
try {
$category->fill($request->input())->save();
return Redirect::back()->with('success', Lang::get('lang.category_inserted_successfully'));
return redirect('category')->with('success', Lang::get('lang.category_inserted_successfully'));
} catch (Exception $e) {
return Redirect::back()->with('fails', Lang::get('lang.category_not_inserted').'<li>'.$e->getMessage().'</li>');
return redirect('category')->with('fails', Lang::get('lang.category_not_inserted').'<li>'.$e->getMessage().'</li>');
}
}