interface Illuminate / Database / ConnectionResolverInterface
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

ConnectionResolverInterface

Methods

public

connection ( $name ) : ConnectionInterface

Get a database connection instance.

Parameters

  • $name string|null
public

getDefaultConnection ( ) : string

Get the default connection name.

public

setDefaultConnection ( $name ) : void

Set the default connection name.

Parameters

  • $name string