From 4d38c44a93944d79dac420ba403236fb9da5afa8 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 11 Dec 2019 11:26:58 -0800 Subject: [PATCH] Fixed groups request --- app/Http/Controllers/GroupsController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/GroupsController.php b/app/Http/Controllers/GroupsController.php index dced3ab9b6..370c8eba52 100755 --- a/app/Http/Controllers/GroupsController.php +++ b/app/Http/Controllers/GroupsController.php @@ -3,7 +3,7 @@ namespace App\Http\Controllers; use App\Helpers\Helper; use App\Models\Group; -use Request; +use Illuminate\Http\Request; /** @@ -37,13 +37,13 @@ class GroupsController extends Controller * @since [v1.0] * @return \Illuminate\Contracts\View\View */ - public function create() + public function create(Request $request) { $group = new Group; // Get all the available permissions $permissions = config('permissions'); $groupPermissions = Helper::selectedPermissionsArray($permissions, $permissions); - $selectedPermissions = Request::old('permissions', $groupPermissions); + $selectedPermissions = $request->old('permissions', $groupPermissions); // Show the page return view('groups/edit', compact('permissions', 'selectedPermissions', 'groupPermissions'))->with('group', $group);