protected function setColumnProperties()
    {
        // First of all, add the id (or any other primary key), if not available
        if (! $this->requestedColumns->contains('name', $this->primaryColumn)) {
            $this->selectColumns[] = $this->primaryColumn;
        }

        $this->requestedColumns->each(function ($column) {
            $this->setColumnPropertiesFor($column);
        });
    }
protected function setColumnProperties()
    {
        // First of all, add the id (or any other primary key), if not available
        if (! $this->requestedColumns->contains('name', $this->primaryColumn)) {
            $this->selectColumns[] = $this->primaryColumn;
        }

        $this->requestedColumns->each(function ($column) {
            $this->setColumnPropertiesFor($column);
        });
    }
protected function setColumnProperties ( ) { // First of all, add the id (or any other primary key), if not available if ( ! $ this -> requestedColumns -> contains ( 'name' , $ this -> primaryColumn ) ) { $ this -> selectColumns [ ] = $ this -> primaryColumn ; } $ this -> requestedColumns -> each ( function ( $ column ) { $ this -> setColumnPropertiesFor ( $ column ) ; } ) ; }
Set column properties from the request data.

@return void
Set column properties from the request data .