Свойство | Type | Description | |
---|---|---|---|
$app | Illuminate\Foundation\Application | The application instance. | |
$connections | array | The active connection instances. | |
$extensions | array | The custom connection resolvers. |
Méthode | Description | |
---|---|---|
__call ( string $method, array $parameters ) : mixed | Dynamically pass methods to the default connection. | |
__construct ( Illuminate\Foundation\Application $app ) : void | Create a new database manager instance. | |
connection ( string $name = null ) : LMongo\Connection | Get a database connection instance. | |
extend ( string $name, callable $resolver ) : void | Register an extension connection resolver. | |
getDefaultConnection ( ) : string | Get the default connection name. | |
reconnect ( string $name = null ) : |
Reconnect to the given database. | |
setDefaultConnection ( string $name ) : void | Set the default connection name. |
Méthode | Description | |
---|---|---|
getConfig ( string $name ) : array | Get the configuration for a connection. | |
makeConnection ( string $name ) : |
Make the database connection instance. | |
prepare ( |
Prepare the database connection instance. |
public __construct ( Illuminate\Foundation\Application $app ) : void | ||
$app | Illuminate\Foundation\Application | |
Résultat | void |
public connection ( string $name = null ) : LMongo\Connection | ||
$name | string | |
Résultat | LMongo\Connection |
public getDefaultConnection ( ) : string | ||
Résultat | string |
protected makeConnection ( string $name ) : |
||
$name | string | |
Résultat |
protected prepare ( |
||
$connection | ||
Résultat |
public setDefaultConnection ( string $name ) : void | ||
$name | string | |
Résultat | void |
protected Application,Illuminate\Foundation $app | ||
Résultat | Illuminate\Foundation\Application |
protected array $connections | ||
Résultat | array |
protected array $extensions | ||
Résultat | array |