class DB extends Database (View source)

Methods

__construct(string|null $connection = null)

Create a new class instance.

from  Database
static Connection
resolve(Database $attribute, Container $container)

Resolve the database connection.

from  Database

Details

__construct(string|null $connection = null)

Create a new class instance.

Parameters

string|null $connection

static Connection resolve(Database $attribute, Container $container)

Resolve the database connection.

Parameters

Database $attribute
Container $container

Return Value

Connection