class SchemaProxy mixin Builder

Properties

protected null|Connection, string, null|Blueprint $resolver

Methods

__construct(Container $app)

Create a new schema proxy.

mixed
__call(string $name, array $arguments)

Forward a schema operation to the current connection's builder.

connection(string|null $name = null)

Get schema builder with specific connection.

void
blueprintResolver(Closure $resolver)

Set the default Schema Blueprint resolver callback.

Details

at line 24
__construct(Container $app)

Create a new schema proxy.

Parameters

Container $app

at line 31
mixed __call(string $name, array $arguments)

Forward a schema operation to the current connection's builder.

Parameters

string $name
array $arguments

Return Value

mixed

at line 42
Builder connection(string|null $name = null)

Get schema builder with specific connection.

Routes through DatabaseManager to respect usingConnection() overrides.

Parameters

string|null $name

Return Value

Builder

at line 65
void blueprintResolver(Closure $resolver)

Set the default Schema Blueprint resolver callback.

Boot-only. The callback persists on the shared proxy for the worker lifetime and applies to every subsequent schema builder it creates.

Parameters

Closure $resolver

Return Value

void