protected function setColumnPropertiesFor($column)
    {
        $columnName = $column['name'];

        if ($column['searchable'] == 'true' && ! in_array($columnName, config('laratables.non_searchable_columns'))) {
            $this->searchColumns[] = $columnName;
        }

        if ($this->isCustomColumn($columnName) && ! isRelationColumn($columnName)) {
            return;
        }

        if (isRelationColumn($columnName)) {
            $this->relationshipsManager->addRelation($columnName);

            if ($foreignKeys = $this->relationshipsManager->getRelationSelectColumns($columnName)) {
                array_push($this->selectColumns, ...$foreignKeys);
            }

            return;
        }

        $this->selectColumns[] = $columnName;
    }
protected function setColumnPropertiesFor($column)
    {
        $columnName = $column['name'];

        if ($column['searchable'] == 'true' && ! in_array($columnName, config('laratables.non_searchable_columns'))) {
            $this->searchColumns[] = $columnName;
        }

        if ($this->isCustomColumn($columnName) && ! isRelationColumn($columnName)) {
            return;
        }

        if (isRelationColumn($columnName)) {
            $this->relationshipsManager->addRelation($columnName);

            if ($foreignKeys = $this->relationshipsManager->getRelationSelectColumns($columnName)) {
                array_push($this->selectColumns, ...$foreignKeys);
            }

            return;
        }

        $this->selectColumns[] = $columnName;
    }
protected function setColumnPropertiesFor ( $ column ) { $ columnName = $ column [ 'name' ] ; if ( $ column [ 'searchable' ] == 'true' && ! in_array ( $ columnName , config ( 'laratables.non_searchable_columns' ) ) ) { $ this -> searchColumns [ ] = $ columnName ; } if ( $ this -> isCustomColumn ( $ columnName ) && ! isRelationColumn ( $ columnName ) ) { return ; } if ( isRelationColumn ( $ columnName ) ) { $ this -> relationshipsManager -> addRelation ( $ columnName ) ; if ( $ foreignKeys = $ this -> relationshipsManager -> getRelationSelectColumns ( $ columnName ) ) { array_push ( $ this -> selectColumns , ... $ foreignKeys ) ; } return ; } $ this -> selectColumns [ ] = $ columnName ; }
Set column properties from the specified column data.

@param array column details

@return void
Set column properties from the specified column data .