Fixed compact() errors

This commit is contained in:
snipe
2020-04-07 17:26:56 -07:00
parent b7d9790acb
commit 0b3f511534
10 changed files with 24 additions and 38 deletions
@@ -219,10 +219,7 @@ class CategoriesController extends Controller
->with('category_type_route',$category_type_route);
}
// Prepare the error message
$error = trans('admin/categories/message.does_not_exist', compact('id'));
// Redirect to the user management page
return redirect()->route('categories.index')->with('error', $error);
return redirect()->route('categories.index')->with('error', trans('admin/categories/message.does_not_exist'));
}