protected function transformRecord($record)
    {
        $columnNames = $this->columnManager->getRequestedColumnNames();
        $columnNames->transform(function ($item) use ($record) {
            return $this->getColumnValue($item, $record);
        });

        $datatableParameters = $this->getDatatableParameters($record);

        return array_merge($datatableParameters, $columnNames->toArray());
    }
protected function transformRecord($record)
    {
        $columnNames = $this->columnManager->getRequestedColumnNames();
        $columnNames->transform(function ($item) use ($record) {
            return $this->getColumnValue($item, $record);
        });

        $datatableParameters = $this->getDatatableParameters($record);

        return array_merge($datatableParameters, $columnNames->toArray());
    }
protected function transformRecord ( $ record ) { $ columnNames = $ this -> columnManager -> getRequestedColumnNames ( ) ; $ columnNames -> transform ( function ( $ item ) use ( $ record ) { return $ this -> getColumnValue ( $ item , $ record ) ; } ) ; $ datatableParameters = $ this -> getDatatableParameters ( $ record ) ; return array_merge ( $ datatableParameters , $ columnNames -> toArray ( ) ) ; }
Transform the record data for Datatables display.

@param \Illuminate\Database\Eloquent\Model Eloquent object

@return \Illuminate\Database\Eloquent\Model Eloquent object
Transform the record data for Datatables display .