load("roles"); $userWorkGroup->roles->each(function ($role){ app("RoleService")->clearUserAuthority($role->id,false,false,true); }); } }