Skip to content

Call to undefined method Grimzy\LaravelMysqlSpatial\Schema\Grammars\MySqlGrammar::compileColumnExists() #81

Open
@eelco2k

Description

@eelco2k

i'm getting an error when using this code for getting my table column names.

    public function getColumnsNames($table) {
        $connection = DB::connection();
        $connection->getSchemaBuilder();

        $table = $connection->getTablePrefix() . $table;
        $grammar = $connection->getSchemaGrammar();
        $results = $connection->select($grammar->compileColumnExists(), array($connection->getDatabaseName(), $table));

        return $connection->getPostProcessor()->processColumnListing($results);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions