src/Laravel/QSource.php
public function groupQuery($block_name, $group_name)
    {
        $model_group = $this->app->make('Interpro\QuickStorage\Laravel\Model\Group');

        $group_q = $model_group->query();

        $group_q->where('group_name', '=', $group_name);

        $fields = $this->storageStruct->getGroupFieldsFlat($block_name, $group_name);

        $fields_except = ['id', 'owner_id', 'group_name', 'group_owner_name', 'block_name', 'title', 'slug', 'sorter', 'show'];

        foreach($fields as $field_name)
        {
            if(!in_array($field_name, $fields_except))
            {
                $this->select_field_for_group($group_q, $block_name, $group_name, $field_name);
            }
        }

        //Условия
        $this->groupSpecificationSet->setCurrentGroup($group_name);
        foreach($this->groupSpecificationSet as $spec)
        {
            $spec->asScope($group_q);
        }

        //Сортировка
        $this->groupSortingSet->setCurrentGroup($group_name);
        foreach($this->groupSortingSet as $spec)
        {
            $spec->apply($group_q);
        }

        //Применить параметры
        $this->groupParam->apply($group_name, $group_q);



        return $group_q->get($fields)->toArray();
    }
public function groupQuery($block_name, $group_name)
    {
        $model_group = $this->app->make('Interpro\QuickStorage\Laravel\Model\Group');

        $group_q = $model_group->query();

        $group_q->where('group_name', '=', $group_name);

        $fields = $this->storageStruct->getGroupFieldsFlat($block_name, $group_name);

        $fields_except = ['id', 'owner_id', 'group_name', 'group_owner_name', 'block_name', 'title', 'slug', 'sorter', 'show'];

        foreach($fields as $field_name)
        {
            if(!in_array($field_name, $fields_except))
            {
                $this->select_field_for_group($group_q, $block_name, $group_name, $field_name);
            }
        }

        //Условия
        $this->groupSpecificationSet->setCurrentGroup($group_name);
        foreach($this->groupSpecificationSet as $spec)
        {
            $spec->asScope($group_q);
        }

        //Сортировка
        $this->groupSortingSet->setCurrentGroup($group_name);
        foreach($this->groupSortingSet as $spec)
        {
            $spec->apply($group_q);
        }

        //Применить параметры
        $this->groupParam->apply($group_name, $group_q);



        return $group_q->get($fields)->toArray();
    }
@param string $block_name
@param string $group_name

@return array