class DatabaseManager implements ConnectionResolverInterface (View source)
void | __construct(Application $app, ConnectionFactory $factory) Create a new database manager instance. | |
ConnectionInterface | connection(string $name = null) Get a database connection instance. | |
void | purge(string $name = null) Disconnect from the given database and remove from local cache. | |
void | disconnect(string $name = null) Disconnect from the given database. | |
Connection | reconnect(string $name = null) Reconnect to the given database. | |
string | getDefaultConnection() Get the default connection name. | |
void | setDefaultConnection(string $name) Set the default connection name. | |
array | supportedDrivers() Get all of the support drivers. | |
array | availableDrivers() Get all of the drivers that are actually available. | |
void | extend(string $name, callable $resolver) Register an extension connection resolver. | |
array | getConnections() Return all of the created connections. | |
mixed | __call(string $method, array $parameters) Dynamically pass methods to the default connection. |
Create a new database manager instance.
Get a database connection instance.
Disconnect from the given database and remove from local cache.
Disconnect from the given database.
Reconnect to the given database.
Get the default connection name.
Set the default connection name.
Get all of the support drivers.
Get all of the drivers that are actually available.
Register an extension connection resolver.
Return all of the created connections.
Dynamically pass methods to the default connection.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Database/DatabaseManager.html