Schema
Illuminate\Support\Facades\Schema
class src/Illuminate/Support/Facades/Schema.php
blueprintResolver
v11.0.0 以前から
static @method
static blueprintResolver(\Closure $resolver): void
-
v11.0.0
追加
- 変更後
@method static blueprintResolver(\Closure $resolver): void
-
v12.12.0
シグネチャ変更
- 変更前
@method static blueprintResolver(\Closure $resolver): void- 変更後
@method static blueprintResolver(\Closure|null $resolver): void
-
v12.22.0
シグネチャ変更
- 変更前
@method static blueprintResolver(\Closure|null $resolver): void- 変更後
@method static blueprintResolver(\Closure $resolver): void
connection
v11.0.0 以前から
static
static connection($name)
@param string|null $name
@return \Illuminate\Database\Schema\Builder
-
v11.0.0
追加
- 変更後
static connection($name) [@param string|null $name, @return \Illuminate\Database\Schema\Builder]
create
v11.0.0 以前から
static @method
static create(string $table, \Closure $callback): void
-
v11.0.0
追加
- 変更後
@method static create(string $table, \Closure $callback): void
createDatabase
v11.0.0 以前から
static @method
static createDatabase(string $name): bool
-
v11.0.0
追加
- 変更後
@method static createDatabase(string $name): bool
defaultMorphKeyType
v11.0.0 以前から
static @method
static defaultMorphKeyType(string $type): void
-
v11.0.0
追加
- 変更後
@method static defaultMorphKeyType(string $type): void
defaultStringLength
v11.0.0 以前から
static @method
static defaultStringLength(int $length): void
-
v11.0.0
追加
- 変更後
@method static defaultStringLength(int $length): void
defaultTimePrecision
v12.0.0 から
static @method
static defaultTimePrecision(int|null $precision): void
-
v12.0.0
追加
- 変更後
@method static defaultTimePrecision(int|null $precision): void
disableForeignKeyConstraints
v11.0.0 以前から
static @method
static disableForeignKeyConstraints(): bool
-
v11.0.0
追加
- 変更後
@method static disableForeignKeyConstraints(): bool
drop
v11.0.0 以前から
static @method
static drop(string $table): void
-
v11.0.0
追加
- 変更後
@method static drop(string $table): void
dropAllTables
v11.0.0 以前から
static @method
static dropAllTables(): void
-
v11.0.0
追加
- 変更後
@method static dropAllTables(): void
dropAllTypes
v11.0.0 以前から
static @method
static dropAllTypes(): void
-
v11.0.0
追加
- 変更後
@method static dropAllTypes(): void
dropAllViews
v11.0.0 以前から
static @method
static dropAllViews(): void
-
v11.0.0
追加
- 変更後
@method static dropAllViews(): void
dropColumns
v11.0.0 以前から
static @method
static dropColumns(string $table, string|array $columns): void
-
v11.0.0
追加
- 変更後
@method static dropColumns(string $table, string|array $columns): void
-
v13.4.0
シグネチャ変更
- 変更前
@method static dropColumns(string $table, string|array $columns): void- 変更後
@method static dropColumns(string $table, string|array<string> $columns): void
-
v13.6.0
シグネチャ変更
- 変更前
@method static dropColumns(string $table, string|array<string> $columns): void- 変更後
@method static dropColumns(string $table, string|array $columns): void
dropDatabaseIfExists
v11.0.0 以前から
static @method
static dropDatabaseIfExists(string $name): bool
-
v11.0.0
追加
- 変更後
@method static dropDatabaseIfExists(string $name): bool
dropIfExists
v11.0.0 以前から
static @method
static dropIfExists(string $table): void
-
v11.0.0
追加
- 変更後
@method static dropIfExists(string $table): void
enableForeignKeyConstraints
v11.0.0 以前から
static @method
static enableForeignKeyConstraints(): bool
-
v11.0.0
追加
- 変更後
@method static enableForeignKeyConstraints(): bool
ensureExtensionExists
v12.47.0 から
static @method
static ensureExtensionExists(string $name, string|null $schema = null): void
-
v12.47.0
追加
- 変更後
@method static ensureExtensionExists(string $name, string|null $schema = null): void
ensureVectorExtensionExists
v12.47.0 から
static @method
static ensureVectorExtensionExists(string|null $schema = null): void
-
v12.47.0
追加
- 変更後
@method static ensureVectorExtensionExists(string|null $schema = null): void
flushMacros
v11.0.0 以前から
static @method
static flushMacros(): void
-
v11.0.0
追加
- 変更後
@method static flushMacros(): void
getColumn
v13.34.0 から
static @method
static getColumn(string $table, string $column): array
-
v13.34.0
追加
- 変更後
@method static getColumn(string $table, string $column): array
getColumnListing
v11.0.0 以前から
static @method
static getColumnListing(string $table): array
-
v11.0.0
追加
- 変更後
@method static getColumnListing(string $table): array
-
v13.4.0
シグネチャ変更
- 変更前
@method static getColumnListing(string $table): array- 変更後
@method static getColumnListing(string $table): array<string>
-
v13.6.0
シグネチャ変更
- 変更前
@method static getColumnListing(string $table): array<string>- 変更後
@method static getColumnListing(string $table): array
getColumns
v11.0.0 以前から
static @method
static getColumns(string $table): array
-
v11.0.0
追加
- 変更後
@method static getColumns(string $table): array
-
v13.4.0
シグネチャ変更
- 変更前
@method static getColumns(string $table): array- 変更後
@method static getColumns(string $table): array<array>
-
v13.6.0
シグネチャ変更
- 変更前
@method static getColumns(string $table): array<array>- 変更後
@method static getColumns(string $table): array
getColumnType
v11.0.0 以前から
static @method
static getColumnType(string $table, string $column, bool $fullDefinition = false): string
-
v11.0.0
追加
- 変更後
@method static getColumnType(string $table, string $column, bool $fullDefinition = false): string
getConnection
v11.0.0 以前から
static @method
static getConnection(): \Illuminate\Database\Connection
-
v11.0.0
追加
- 変更後
@method static getConnection(): \Illuminate\Database\Connection
getCurrentSchemaListing
v12.0.0 から
static @method
static getCurrentSchemaListing(): string[]|null
-
v12.0.0
追加
- 変更後
@method static getCurrentSchemaListing(): string[]|null
getCurrentSchemaName
v12.0.0 から
static @method
static getCurrentSchemaName(): string|null
-
v12.0.0
追加
- 変更後
@method static getCurrentSchemaName(): string|null
getForeignKeys
v11.0.0 以前から
static @method
static getForeignKeys(string $table): array
-
v11.0.0
追加
- 変更後
@method static getForeignKeys(string $table): array
getIndexes
v11.0.0 以前から
static @method
static getIndexes(string $table): array
-
v11.0.0
追加
- 変更後
@method static getIndexes(string $table): array
-
v13.4.0
シグネチャ変更
- 変更前
@method static getIndexes(string $table): array- 変更後
@method static getIndexes(string $table): array<array>
-
v13.6.0
シグネチャ変更
- 変更前
@method static getIndexes(string $table): array<array>- 変更後
@method static getIndexes(string $table): array
getIndexListing
v11.0.0 以前から
static @method
static getIndexListing(string $table): array
-
v11.0.0
追加
- 変更後
@method static getIndexListing(string $table): array
-
v13.4.0
シグネチャ変更
- 変更前
@method static getIndexListing(string $table): array- 変更後
@method static getIndexListing(string $table): array<string>
-
v13.6.0
シグネチャ変更
- 変更前
@method static getIndexListing(string $table): array<string>- 変更後
@method static getIndexListing(string $table): array
getSchemas
v12.0.0 から
static @method
static getSchemas(): array
getTableListing
v11.0.0 以前から
static @method
static getTableListing(string|string[]|null $schema = null, bool $schemaQualified = true): array
-
v11.0.0
追加
- 変更後
@method static getTableListing(): array
-
v12.0.0
シグネチャ変更
- 変更前
@method static getTableListing(): array- 変更後
@method static getTableListing(string|string[]|null $schema = null, bool $schemaQualified = true): array
-
v13.4.0
シグネチャ変更
- 変更前
@method static getTableListing(string|string[]|null $schema = null, bool $schemaQualified = true): array- 変更後
@method static getTableListing(string|string[]|null $schema = null, bool $schemaQualified = true): array<string>
-
v13.6.0
シグネチャ変更
- 変更前
@method static getTableListing(string|string[]|null $schema = null, bool $schemaQualified = true): array<string>- 変更後
@method static getTableListing(string|string[]|null $schema = null, bool $schemaQualified = true): array
getTables
v11.0.0 以前から
static @method
static getTables(string|string[]|null $schema = null): array
-
v11.0.0
追加
- 変更後
@method static getTables(): array
-
v12.0.0
シグネチャ変更
- 変更前
@method static getTables(): array- 変更後
@method static getTables(string|string[]|null $schema = null): array
-
v13.4.0
シグネチャ変更
- 変更前
@method static getTables(string|string[]|null $schema = null): array- 変更後
@method static getTables(string|string[]|null $schema = null): array<array>
-
v13.6.0
シグネチャ変更
- 変更前
@method static getTables(string|string[]|null $schema = null): array<array>- 変更後
@method static getTables(string|string[]|null $schema = null): array
getTypes
v11.0.0 以前から
static @method
static getTypes(string|string[]|null $schema = null): array
-
v11.0.0
追加
- 変更後
@method static getTypes(): array
-
v12.0.0
シグネチャ変更
- 変更前
@method static getTypes(): array- 変更後
@method static getTypes(string|string[]|null $schema = null): array
-
v13.4.0
シグネチャ変更
- 変更前
@method static getTypes(string|string[]|null $schema = null): array- 変更後
@method static getTypes(string|string[]|null $schema = null): array<array>
-
v13.6.0
シグネチャ変更
- 変更前
@method static getTypes(string|string[]|null $schema = null): array<array>- 変更後
@method static getTypes(string|string[]|null $schema = null): array
getViews
v11.0.0 以前から
static @method
static getViews(string|string[]|null $schema = null): array
-
v11.0.0
追加
- 変更後
@method static getViews(): array
-
v12.0.0
シグネチャ変更
- 変更前
@method static getViews(): array- 変更後
@method static getViews(string|string[]|null $schema = null): array
-
v13.4.0
シグネチャ変更
- 変更前
@method static getViews(string|string[]|null $schema = null): array- 変更後
@method static getViews(string|string[]|null $schema = null): array<array>
-
v13.6.0
シグネチャ変更
- 変更前
@method static getViews(string|string[]|null $schema = null): array<array>- 変更後
@method static getViews(string|string[]|null $schema = null): array
hasColumn
v11.0.0 以前から
static @method
static hasColumn(string $table, string $column): bool
-
v11.0.0
追加
- 変更後
@method static hasColumn(string $table, string $column): bool
hasColumns
v11.0.0 以前から
static @method
static hasColumns(string $table, array $columns): bool
-
v11.0.0
追加
- 変更後
@method static hasColumns(string $table, array $columns): bool
-
v13.4.0
シグネチャ変更
- 変更前
@method static hasColumns(string $table, array $columns): bool- 変更後
@method static hasColumns(string $table, array<string> $columns): bool
-
v13.6.0
シグネチャ変更
- 変更前
@method static hasColumns(string $table, array<string> $columns): bool- 変更後
@method static hasColumns(string $table, array $columns): bool
hasForeignKey
v13.10.0 から
static @method
static hasForeignKey(string $table, array|string $foreignKey): bool
-
v13.10.0
追加
- 変更後
@method static hasForeignKey(string $table, array|string $foreignKey): bool
hasIndex
v11.0.0 以前から
static @method
static hasIndex(string $table, string|array $index, string|null $type = null): bool
-
v11.0.0
追加
- 変更後
@method static hasIndex(string $table, string|array $index, string|null $type = null): bool
hasMacro
v11.0.0 以前から
static @method
static hasMacro(string $name): bool
-
v11.0.0
追加
- 変更後
@method static hasMacro(string $name): bool
hasTable
v11.0.0 以前から
static @method
static hasTable(string $table): bool
-
v11.0.0
追加
- 変更後
@method static hasTable(string $table): bool
hasView
v11.0.0 以前から
static @method
static hasView(string $view): bool
-
v11.0.0
追加
- 変更後
@method static hasView(string $view): bool
macro
v11.0.0 以前から
static @method
static macro(string $name, object|callable $macro): void
-
v11.0.0
追加
- 変更後
@method static macro(string $name, object|callable $macro): void
-
v11.8.0
シグネチャ変更
- 変更前
@method static macro(string $name, object|callable $macro): void- 変更後
@method static macro(string $name, object|callable $macro, object|callable $macro = null): void
-
v11.23.3
シグネチャ変更
- 変更前
@method static macro(string $name, object|callable $macro, object|callable $macro = null): void- 変更後
@method static macro(string $name, object|callable $macro): void
mixin
v11.0.0 以前から
static @method
static mixin(object $mixin, bool $replace = true): void
-
v11.0.0
追加
- 変更後
@method static mixin(object $mixin, bool $replace = true): void
morphUsingUlids
v11.0.0 以前から
static @method
static morphUsingUlids(): void
-
v11.0.0
追加
- 変更後
@method static morphUsingUlids(): void
morphUsingUuids
v11.0.0 以前から
static @method
static morphUsingUuids(): void
-
v11.0.0
追加
- 変更後
@method static morphUsingUuids(): void
parseSchemaAndTable
v12.0.0 から
static @method
static parseSchemaAndTable(string $reference, string|bool|null $withDefaultSchema = null): array
-
v12.0.0
追加
- 変更後
@method static parseSchemaAndTable(string $reference, string|bool|null $withDefaultSchema = null): array
rename
v11.0.0 以前から
static @method
static rename(string $from, string $to): void
-
v11.0.0
追加
- 変更後
@method static rename(string $from, string $to): void
setConnection
v11.0.0 以前から
v12.0.0 で削除
table
v11.0.0 以前から
static @method
static table(string $table, \Closure $callback): void
-
v11.0.0
追加
- 変更後
@method static table(string $table, \Closure $callback): void
whenTableDoesntHaveColumn
v11.0.0 以前から
static @method
static whenTableDoesntHaveColumn(string $table, string $column, \Closure $callback): void
-
v11.0.0
追加
- 変更後
@method static whenTableDoesntHaveColumn(string $table, string $column, \Closure $callback): void
whenTableDoesntHaveIndex
v12.42.0 から
static @method
static whenTableDoesntHaveIndex(string $table, string|array $index, \Closure $callback, string|null $type = null): void
-
v12.42.0
追加
- 変更後
@method static whenTableDoesntHaveIndex(string $table, string|array $index, \Closure $callback, string|null $type = null): void
whenTableHasColumn
v11.0.0 以前から
static @method
static whenTableHasColumn(string $table, string $column, \Closure $callback): void
-
v11.0.0
追加
- 変更後
@method static whenTableHasColumn(string $table, string $column, \Closure $callback): void
whenTableHasIndex
v12.42.0 から
static @method
static whenTableHasIndex(string $table, string|array $index, \Closure $callback, string|null $type = null): void
-
v12.42.0
追加
- 変更後
@method static whenTableHasIndex(string $table, string|array $index, \Closure $callback, string|null $type = null): void
withoutForeignKeyConstraints
v11.0.0 以前から
static @method
static withoutForeignKeyConstraints(\Closure $callback): mixed
-
v11.0.0
追加
- 変更後
@method static withoutForeignKeyConstraints(\Closure $callback): mixed