protected function getColumnValue($columnName, $record)
    {
        // Set custom column value from the class static method
        if ($methodName = $this->columnManager->isCustomColumn($columnName)) {
            return $this->class::$methodName($record);
        }

        if ($methodName = $this->customisesColumnValue($columnName)) {
            return $record->$methodName();
        }

        if (isRelationColumn($columnName)) {
            return $this->getRelationColumnValue($columnName, $record);
        }

        if ($this->isCarbonInstance($record->$columnName)) {
            return $record->$columnName->format(config('laratables.date_format', 'Y-m-d H:i:s'));
        }

        return $record->$columnName;
    }
protected function getColumnValue($columnName, $record)
    {
        // Set custom column value from the class static method
        if ($methodName = $this->columnManager->isCustomColumn($columnName)) {
            return $this->class::$methodName($record);
        }

        if ($methodName = $this->customisesColumnValue($columnName)) {
            return $record->$methodName();
        }

        if (isRelationColumn($columnName)) {
            return $this->getRelationColumnValue($columnName, $record);
        }

        if ($this->isCarbonInstance($record->$columnName)) {
            return $record->$columnName->format(config('laratables.date_format', 'Y-m-d H:i:s'));
        }

        return $record->$columnName;
    }
protected function getColumnValue ( $ columnName , $ record ) { // Set custom column value from the class static method if ( $ methodName = $ this -> columnManager -> isCustomColumn ( $ columnName ) ) { return $ this -> class :: $ methodName ( $ record ) ; } if ( $ methodName = $ this -> customisesColumnValue ( $ columnName ) ) { return $ record -> $ methodName ( ) ; } if ( isRelationColumn ( $ columnName ) ) { return $ this -> getRelationColumnValue ( $ columnName , $ record ) ; } if ( $ this -> isCarbonInstance ( $ record -> $ columnName ) ) { return $ record -> $ columnName -> format ( config ( 'laratables.date_format' , 'Y-m-d H:i:s' ) ) ; } return $ record -> $ columnName ; }
Retuns column value to be displayed in datatables.

@param mixed Column value from database
@param \Illuminate\Database\Eloquent\Model Eloquent object

@return string
Retuns column value to be displayed in datatables .