laravel-mysql-spatial
laravel-mysql-spatial copied to clipboard
Call to undefined method Grimzy\LaravelMysqlSpatial\Schema\Grammars\MySqlGrammar::compileColumnExists()
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);
}
What's the type of $connection
? Grimzy\LaravelMysqlSpatial\MysqlConnection
?
i tried the following:
dd(get_class($connection));
which returns:
"Grimzy\LaravelMysqlSpatial\MysqlConnection"
so yes that is the type
Might be related to https://github.com/grimzy/laravel-mysql-spatial/issues/109.