public function getColumn($columnKey)
    {
        $columns = $this->searchable();

        if (array_key_exists($columnKey, $columns)) {
            return $columns[$columnKey];
        }

        foreach ($columns as $column) {
            if ($column === $columnKey || ends_with($column, ".{$columnKey}")) {
                return $column;
            }
        }
    }
public function getColumn($columnKey)
    {
        $columns = $this->searchable();

        if (array_key_exists($columnKey, $columns)) {
            return $columns[$columnKey];
        }

        foreach ($columns as $column) {
            if ($column === $columnKey || ends_with($column, ".{$columnKey}")) {
                return $column;
            }
        }
    }
public function getColumn ( $ columnKey ) { $ columns = $ this -> searchable ( ) ; if ( array_key_exists ( $ columnKey , $ columns ) ) { return $ columns [ $ columnKey ] ; } foreach ( $ columns as $ column ) { if ( $ column === $ columnKey || ends_with ( $ column , ".{$columnKey}" ) ) { return $ column ; } } }
Get the actual searchable column of the given column key.

@param  string $columnKey
@return string|mixed
Get the actual searchable column of the given column key .