Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
The title says it all : How can I add a Member Group in my package.
I'm using some features with a specific group of members any I want to create it when I install my package.
Quick answer no. The way I know about exporting member types is with Usync
You need to use a package action which gets executed after your package is installed.
This what I have done.
public class ForumInstallHandler : IPackageAction
public bool Execute(string packageName, XElement xmlData)
Current.Logger.Info(System.Reflection.MethodBase.GetCurrentMethod().GetType(), "Executing ForumInstallHandler:Publish Content");
Current.Logger.Info(System.Reflection.MethodBase.GetCurrentMethod().GetType(), "Executing ForumInstallHandler:Create Member Properties");
catch (Exception ex)
Current.Logger.Error(System.Reflection.MethodBase.GetCurrentMethod().GetType(), "INSTALL Package Error", ex);
public string Alias()
public bool Undo(string packageName, XElement xmlData)
private bool AddMemberGroups()
var _memberService = Current.Services.MemberGroupService;
IMemberGroup admingroup = new MemberGroup();
admingroup.Name = "ForumAdministrator";
IMemberGroup modgroup = new MemberGroup();
modgroup.Name = "ForumModerator";
Current.Logger.Error(System.Reflection.MethodBase.GetCurrentMethod().GetType(), "Error creating Member groups", e);
This is called by adding the following action in the package actions
<action runat="install" undo="true" alias="ForumInstallHandler"></action>
am developing a project using Laravel 5.6 where there is requirement of group, were user can create a group, add member or send invitation to user via email and post to group and can have group chat function also.
I want to complete this module, so I am looking for Laravel packages. I have tried "teamwork" package and "groups" package.
Can you please tell me how did you done?
i read all comments but still i didn't got the perfect solution.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted