add Permissions
This commit is contained in:
@@ -34,9 +34,9 @@ class AdminController extends Controller
|
|||||||
$perm->permission = $permission;
|
$perm->permission = $permission;
|
||||||
$perm->save();
|
$perm->save();
|
||||||
|
|
||||||
return redirect('admin.dashboard')->with('success', 'User udpated!');
|
return redirect('/admin/dashboard')->with('success', 'User udpated!');
|
||||||
} else {
|
} else {
|
||||||
return redirect('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.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user