ConnectionResolverInterface
interface ConnectionResolverInterface (View source)
Methods
connection(string|null $name = null)
Get a database connection instance.
string
getDefaultConnection()
Get the default connection name.
void
setDefaultConnection(string $name)
Set the default connection name.
Details
ConnectionInterface
connection(string|null $name = null)
Get a database connection instance.
string
getDefaultConnection()
Get the default connection name.
void
setDefaultConnection(string $name)
Set the default connection name.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.