I have a multi-tenant database setup, and when trying to query a model I get "Unknown column 'id'". Turns out the method \Unlu\Laravel\Api\QueryBuilder::hasTableColumn calls Schema::hasColumn without setting connection first. Should be:
private function hasTableColumn($column)
{
return (Schema::connection($this->model->getConnectionName())->hasColumn($this->model->getTable(), $column));
}
I have a multi-tenant database setup, and when trying to query a model I get "Unknown column 'id'". Turns out the method
\Unlu\Laravel\Api\QueryBuilder::hasTableColumn
calls Schema::hasColumn without setting connection first. Should be: