From 85ef1e9fd97e636383304fe1093f912536055f9d Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 6 Dec 2018 23:17:42 -0600 Subject: [PATCH] addPermission --- app/Http/Controllers/AdminController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index 0112f772a..15bebaa61 100644 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -34,9 +34,9 @@ class AdminController extends Controller $perm->permission = $permission; $perm->save(); - return view('admin.dashboard')->with('success', 'User udpated!'); + return redirect('admin.dashboard')->with('success', 'User udpated!'); } else { - return view('admin.dashboard')->with('error', 'User not updated or already has the permission.'); + return redirect('admin.dashboard')->with('error', 'User not updated or already has the permission.'); } }