public function getLocation($column)
    {
        $model = self::select(DB::Raw('ST_AsText('.$column.') AS '.$column))
            ->where('id', $this->id)
            ->first();

        return isset($model) ? $model->$column : '';
    }
public function getLocation($column)
    {
        $model = self::select(DB::Raw('ST_AsText('.$column.') AS '.$column))
            ->where('id', $this->id)
            ->first();

        return isset($model) ? $model->$column : '';
    }
public function getLocation ( $ column ) { $ model = self :: select ( DB :: Raw ( 'ST_AsText(' . $ column . ') AS ' . $ column ) ) -> where ( 'id' , $ this -> id ) -> first ( ) ; return isset ( $ model ) ? $ model -> $ column : '' ; }
Get location as WKT from Geometry for given field.

@param string $column

@return string
Get location as WKT from Geometry for given field .