We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b81f155 commit 757ab30Copy full SHA for 757ab30
src/Connection.php
@@ -142,15 +142,15 @@ protected function buildConnection()
142
{
143
$type = config('database.connections.elasticsearch.auth_type') ?? null;
144
$type = strtolower($type);
145
- if (!in_array($type, ['https', 'cloud',])) {
+ if (!in_array($type, ['http', 'cloud'])) {
146
throw new RuntimeException('Invalid [auth_type] in database config. Must be: http, cloud or api');
147
}
148
149
return $this->{'_'.$type.'Connection'}();
150
151
152
153
- protected function _httpsConnection()
+ protected function _httpConnection()
154
155
$hosts = config('database.connections.elasticsearch.hosts') ?? null;
156
$username = config('database.connections.elasticsearch.username') ?? null;
0 commit comments