Свойство | Type | Description | |
---|---|---|---|
$connections | array | All of the registered connections. | |
$default | string | The default connection name. |
Méthode | Description | |
---|---|---|
__construct ( array $connections = [] ) : void | Create a new connection resolver instance. | |
addConnection ( string $name, |
Add a connection to the resolver. | |
connection ( string $name = null ) : Illuminate\Database\Connection | Get a database connection instance. | |
getDefaultConnection ( ) : string | Get the default connection name. | |
hasConnection ( string $name ) : boolean | Check if a connection has been registered. | |
setDefaultConnection ( string $name ) : void | Set the default connection name. |
public __construct ( array $connections = [] ) : void | ||
$connections | array | |
Résultat | void |
public addConnection ( string $name, |
||
$name | string | |
$connection | ||
Résultat | void |
public connection ( string $name = null ) : Illuminate\Database\Connection | ||
$name | string | |
Résultat | Illuminate\Database\Connection |
public getDefaultConnection ( ) : string | ||
Résultat | string |
public hasConnection ( string $name ) : boolean | ||
$name | string | |
Résultat | boolean |
public setDefaultConnection ( string $name ) : void | ||
$name | string | |
Résultat | void |
protected array $connections | ||
Résultat | array |
protected string $default | ||
Résultat | string |