src/Group.php
public function addGroup(Group ...$groups)
    {
        collect($groups)->map(function ($group) {
            $this->group['groups'][] = $group->get();
        });

        return $this;
    }
public function addGroup(Group ...$groups)
    {
        collect($groups)->map(function ($group) {
            $this->group['groups'][] = $group->get();
        });

        return $this;
    }
public function addGroup ( Group ... $ groups ) { collect ( $ groups ) -> map ( function ( $ group ) { $ this -> group [ 'groups' ] [ ] = $ group -> get ( ) ; } ) ; return $ this ; }
Sub-groups are used to define collections of repeatable fields which can be
inserted, deleted and re-ordered by the user.

@param Agencms\Core\Group ...$groups
@return Agencms\Core\Group
Sub - groups are used to define collections of repeatable fields which can be inserted deleted and re - ordered by the user .