app/model/admin/SystemGroup.class.php
/**
     * Add a SystemUser to the SystemGroup
     * @param $object Instance of SystemUser
     */
Add a SystemUser to the SystemGroup
@param $object Instance of SystemUser
Add a SystemUser to the SystemGroup @param $object Instance of SystemUser
public function addSystemUser(SystemUser $systemuser)
    {
        if (SystemUserGroup::where('system_user_id','=',$systemuser->id)->where('system_group_id','=',$this->id)->count() == 0)
        {
            $object = new SystemUserGroup;
            $object->system_user_id  = $systemuser->id;
            $object->system_group_id = $this->id;
            $object->store();
        }
    }
public function addSystemUser ( SystemUser $ systemuser ) { if ( SystemUserGroup :: where ( 'system_user_id' , '=' , $ systemuser -> id ) -> where ( 'system_group_id' , '=' , $ this -> id ) -> count ( ) == 0 ) { $ object = new SystemUserGroup ; $ object -> system_user_id = $ systemuser -> id ; $ object -> system_group_id = $ this -> id ; $ object -> store ( ) ; } }
Add a SystemUser to the SystemGroup
 @param $object Instance of SystemUser
Add a SystemUser to the SystemGroup @param $object Instance of SystemUser