class ConnectionResolver implements ConnectionResolverInterface (View source)
void | __construct(array $connections = array()) Create a new connection resolver instance. | |
ConnectionInterface | connection(string $name = null) Get a database connection instance. | |
void | addConnection(string $name, ConnectionInterface $connection) Add a connection to the resolver. | |
bool | hasConnection(string $name) Check if a connection has been registered. | |
string | getDefaultConnection() Get the default connection name. | |
void | setDefaultConnection(string $name) Set the default connection name. |
Create a new connection resolver instance.
Get a database connection instance.
Add a connection to the resolver.
Check if a connection has been registered.
Get the default connection name.
Set the default connection name.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Database/ConnectionResolver.html