Manager
class Manager (View source)
Traits
Properties
static protected object | $instance | The current globally used instance. |
from CapsuleManagerTrait |
protected Container | $container | The container instance. |
from CapsuleManagerTrait |
protected DatabaseManager | $manager | The database manager instance. |
Methods
Create a new database capsule manager.
Setup the default database configuration options.
Build the database manager instance.
Get a connection instance from the global manager.
Get a registered connection instance.
Register a connection with the manager.
Bootstrap Eloquent so it is ready for usage.
Set the fetch mode for the database connections.
Get the database manager instance.
Get the current event dispatcher instance.
Set the event dispatcher instance to be used by connections.
Dynamically pass methods to the default connection.
Details
static Connection
connection(string|null $connection = null)
Get a connection instance from the global manager.
static Builder
table(Closure|Builder|string $table, string|null $as = null, string|null $connection = null)
Get a fluent query builder instance.
void
setEventDispatcher(Dispatcher $dispatcher)
Set the event dispatcher instance to be used by connections.