프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$connections | array | All of the registered connections. | |
$default | string | The default connection name. |
메소드 | 설명 | |
---|---|---|
__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 | |
리턴 | void |
public addConnection ( string $name, |
||
$name | string | |
$connection | ||
리턴 | void |
public connection ( string $name = null ) : Illuminate\Database\Connection | ||
$name | string | |
리턴 | Illuminate\Database\Connection |
public getDefaultConnection ( ) : string | ||
리턴 | string |
public hasConnection ( string $name ) : boolean | ||
$name | string | |
리턴 | boolean |
public setDefaultConnection ( string $name ) : void | ||
$name | string | |
리턴 | void |