src/Laravel/QSource.php
public function blockQuery($block_name)
    {
        $model_block = $this->app->make('Interpro\QuickStorage\Laravel\Model\Block');

        $block_q = $model_block->query();

        $block_q->where('name', '=', $block_name);

        $fields = $this->storageStruct->getBlockFieldsFlat($block_name);

        $fields_except = ['name', 'title', 'show'];

        foreach($fields as $field_name)
        {
            if(!in_array($field_name, $fields_except))
            {
                $this->select_field_for_block($block_q, $block_name, $field_name);
            }
        }

        $collection = $block_q->get($fields);

        if(!$collection->isEmpty())
        {
            $block_obj = $collection->first();

            return $block_obj->toArray();

        }else{

            throw new BuildQueryException('Блок '.$block_name.' не найден в базе данных.');
        }
    }
public function blockQuery($block_name)
    {
        $model_block = $this->app->make('Interpro\QuickStorage\Laravel\Model\Block');

        $block_q = $model_block->query();

        $block_q->where('name', '=', $block_name);

        $fields = $this->storageStruct->getBlockFieldsFlat($block_name);

        $fields_except = ['name', 'title', 'show'];

        foreach($fields as $field_name)
        {
            if(!in_array($field_name, $fields_except))
            {
                $this->select_field_for_block($block_q, $block_name, $field_name);
            }
        }

        $collection = $block_q->get($fields);

        if(!$collection->isEmpty())
        {
            $block_obj = $collection->first();

            return $block_obj->toArray();

        }else{

            throw new BuildQueryException('Блок '.$block_name.' не найден в базе данных.');
        }
    }
@param string $block_name

@return array