Property | Type | Description | |
---|---|---|---|
$app | Illuminate\Contracts\Foundation\Application | The application instance. | |
$connections | array | The active connection instances. | |
$factory | The Elasticsearch connection factory instance. |
Method | Description | |
---|---|---|
__call ( string $method, array $parameters ) : mixed | Dynamically pass methods to the default connection. | |
__construct ( Illuminate\Contracts\Foundation\Application $app, |
||
connection ( null $name = null ) : Elasticsearch\Client | mixed | Retrieve or build the named connection. | |
getConnections ( ) : array | Return all of the created connections. | |
getDefaultConnection ( ) : string | Get the default connection. | |
setDefaultConnection ( string $connection ) | Set the default connection. |
Method | Description | |
---|---|---|
getConfig ( $name ) : mixed | Get the configuration for a named connection. | |
makeConnection ( $name ) : Elasticsearch\Client | mixed | Make a new connection. |
public __construct ( Illuminate\Contracts\Foundation\Application $app, |
||
$app | Illuminate\Contracts\Foundation\Application | |
$factory |
public connection ( null $name = null ) : Elasticsearch\Client | mixed | ||
$name | null | |
return | Elasticsearch\Client | mixed |
public getConnections ( ) : array | ||
return | array |
public getDefaultConnection ( ) : string | ||
return | string |
protected makeConnection ( $name ) : Elasticsearch\Client | mixed | ||
$name | ||
return | Elasticsearch\Client | mixed |
public setDefaultConnection ( string $connection ) | ||
$connection | string |
protected Application,Illuminate\Contracts\Foundation $app | ||
return | Illuminate\Contracts\Foundation\Application |
protected array $connections | ||
return | array |