diff --git a/app/Http/Controllers/GroupsController.php b/app/Http/Controllers/GroupsController.php index 6d22ab886e..abeb8c2a8e 100755 --- a/app/Http/Controllers/GroupsController.php +++ b/app/Http/Controllers/GroupsController.php @@ -66,7 +66,7 @@ class GroupsController extends Controller if ($group->save()) { return redirect()->route("groups.index")->with('success', trans('admin/groups/message.success.create')); } - return redirect()->route('groups.create')->withInput()->withErrors($group->getErrors()); + return redirect()->back()->withInput()->withErrors($group->getErrors()); } /** @@ -132,7 +132,7 @@ class GroupsController extends Controller { if (!config('app.lock_passwords')) { if (!$group = Group::find($id)) { - return redirect()->c->with('error', trans('admin/groups/message.group_not_found', compact('id'))); + return redirect()->route('groups.index')->with('error', trans('admin/groups/message.group_not_found', compact('id'))); } $group->delete(); // Redirect to the group management page