Schema

Illuminate\Support\Facades\Schema

class src/Illuminate/Support/Facades/Schema.php

blueprintResolver

v11.0.0 以前から

static @method

static blueprintResolver(\Closure $resolver): void
  1. v11.0.0 追加
    変更後
    @method static blueprintResolver(\Closure $resolver): void
  2. v12.12.0 シグネチャ変更
    変更前
    @method static blueprintResolver(\Closure $resolver): void
    変更後
    @method static blueprintResolver(\Closure|null $resolver): void
  3. 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
  1. 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
  1. v11.0.0 追加
    変更後
    @method static create(string $table, \Closure $callback): void

createDatabase

v11.0.0 以前から

static @method

static createDatabase(string $name): bool
  1. v11.0.0 追加
    変更後
    @method static createDatabase(string $name): bool

defaultMorphKeyType

v11.0.0 以前から

static @method

static defaultMorphKeyType(string $type): void
  1. v11.0.0 追加
    変更後
    @method static defaultMorphKeyType(string $type): void

defaultStringLength

v11.0.0 以前から

static @method

static defaultStringLength(int $length): void
  1. v11.0.0 追加
    変更後
    @method static defaultStringLength(int $length): void

defaultTimePrecision

v12.0.0 から

static @method

static defaultTimePrecision(int|null $precision): void
  1. v12.0.0 追加
    変更後
    @method static defaultTimePrecision(int|null $precision): void

disableForeignKeyConstraints

v11.0.0 以前から

static @method

static disableForeignKeyConstraints(): bool
  1. v11.0.0 追加
    変更後
    @method static disableForeignKeyConstraints(): bool

drop

v11.0.0 以前から

static @method

static drop(string $table): void
  1. v11.0.0 追加
    変更後
    @method static drop(string $table): void

dropAllTables

v11.0.0 以前から

static @method

static dropAllTables(): void
  1. v11.0.0 追加
    変更後
    @method static dropAllTables(): void

dropAllTypes

v11.0.0 以前から

static @method

static dropAllTypes(): void
  1. v11.0.0 追加
    変更後
    @method static dropAllTypes(): void

dropAllViews

v11.0.0 以前から

static @method

static dropAllViews(): void
  1. v11.0.0 追加
    変更後
    @method static dropAllViews(): void

dropColumns

v11.0.0 以前から

static @method

static dropColumns(string $table, string|array $columns): void
  1. v11.0.0 追加
    変更後
    @method static dropColumns(string $table, string|array $columns): void
  2. v13.4.0 シグネチャ変更
    変更前
    @method static dropColumns(string $table, string|array $columns): void
    変更後
    @method static dropColumns(string $table, string|array<string> $columns): void
  3. 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
  1. v11.0.0 追加
    変更後
    @method static dropDatabaseIfExists(string $name): bool

dropIfExists

v11.0.0 以前から

static @method

static dropIfExists(string $table): void
  1. v11.0.0 追加
    変更後
    @method static dropIfExists(string $table): void

enableForeignKeyConstraints

v11.0.0 以前から

static @method

static enableForeignKeyConstraints(): bool
  1. v11.0.0 追加
    変更後
    @method static enableForeignKeyConstraints(): bool

ensureExtensionExists

v12.47.0 から

static @method

static ensureExtensionExists(string $name, string|null $schema = null): void
  1. 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
  1. v12.47.0 追加
    変更後
    @method static ensureVectorExtensionExists(string|null $schema = null): void

flushMacros

v11.0.0 以前から

static @method

static flushMacros(): void
  1. v11.0.0 追加
    変更後
    @method static flushMacros(): void

getColumn

v13.34.0 から

static @method

static getColumn(string $table, string $column): array
  1. v13.34.0 追加
    変更後
    @method static getColumn(string $table, string $column): array

getColumnListing

v11.0.0 以前から

static @method

static getColumnListing(string $table): array
  1. v11.0.0 追加
    変更後
    @method static getColumnListing(string $table): array
  2. v13.4.0 シグネチャ変更
    変更前
    @method static getColumnListing(string $table): array
    変更後
    @method static getColumnListing(string $table): array<string>
  3. 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
  1. v11.0.0 追加
    変更後
    @method static getColumns(string $table): array
  2. v13.4.0 シグネチャ変更
    変更前
    @method static getColumns(string $table): array
    変更後
    @method static getColumns(string $table): array<array>
  3. 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
  1. 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
  1. v11.0.0 追加
    変更後
    @method static getConnection(): \Illuminate\Database\Connection

getCurrentSchemaListing

v12.0.0 から

static @method

static getCurrentSchemaListing(): string[]|null
  1. v12.0.0 追加
    変更後
    @method static getCurrentSchemaListing(): string[]|null

getCurrentSchemaName

v12.0.0 から

static @method

static getCurrentSchemaName(): string|null
  1. v12.0.0 追加
    変更後
    @method static getCurrentSchemaName(): string|null

getForeignKeys

v11.0.0 以前から

static @method

static getForeignKeys(string $table): array
  1. v11.0.0 追加
    変更後
    @method static getForeignKeys(string $table): array

getIndexes

v11.0.0 以前から

static @method

static getIndexes(string $table): array
  1. v11.0.0 追加
    変更後
    @method static getIndexes(string $table): array
  2. v13.4.0 シグネチャ変更
    変更前
    @method static getIndexes(string $table): array
    変更後
    @method static getIndexes(string $table): array<array>
  3. 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
  1. v11.0.0 追加
    変更後
    @method static getIndexListing(string $table): array
  2. v13.4.0 シグネチャ変更
    変更前
    @method static getIndexListing(string $table): array
    変更後
    @method static getIndexListing(string $table): array<string>
  3. 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
  1. v12.0.0 追加
    変更後
    @method static getSchemas(): array
  2. v13.4.0 シグネチャ変更
    変更前
    @method static getSchemas(): array
    変更後
    @method static getSchemas(): array<array>
  3. v13.6.0 シグネチャ変更
    変更前
    @method static getSchemas(): array<array>
    変更後
    @method static getSchemas(): array

getTableListing

v11.0.0 以前から

static @method

static getTableListing(string|string[]|null $schema = null, bool $schemaQualified = true): array
  1. v11.0.0 追加
    変更後
    @method static getTableListing(): array
  2. v12.0.0 シグネチャ変更
    変更前
    @method static getTableListing(): array
    変更後
    @method static getTableListing(string|string[]|null $schema = null, bool $schemaQualified = true): array
  3. 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>
  4. 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
  1. v11.0.0 追加
    変更後
    @method static getTables(): array
  2. v12.0.0 シグネチャ変更
    変更前
    @method static getTables(): array
    変更後
    @method static getTables(string|string[]|null $schema = null): array
  3. v13.4.0 シグネチャ変更
    変更前
    @method static getTables(string|string[]|null $schema = null): array
    変更後
    @method static getTables(string|string[]|null $schema = null): array<array>
  4. 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
  1. v11.0.0 追加
    変更後
    @method static getTypes(): array
  2. v12.0.0 シグネチャ変更
    変更前
    @method static getTypes(): array
    変更後
    @method static getTypes(string|string[]|null $schema = null): array
  3. v13.4.0 シグネチャ変更
    変更前
    @method static getTypes(string|string[]|null $schema = null): array
    変更後
    @method static getTypes(string|string[]|null $schema = null): array<array>
  4. 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
  1. v11.0.0 追加
    変更後
    @method static getViews(): array
  2. v12.0.0 シグネチャ変更
    変更前
    @method static getViews(): array
    変更後
    @method static getViews(string|string[]|null $schema = null): array
  3. v13.4.0 シグネチャ変更
    変更前
    @method static getViews(string|string[]|null $schema = null): array
    変更後
    @method static getViews(string|string[]|null $schema = null): array<array>
  4. 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
  1. v11.0.0 追加
    変更後
    @method static hasColumn(string $table, string $column): bool

hasColumns

v11.0.0 以前から

static @method

static hasColumns(string $table, array $columns): bool
  1. v11.0.0 追加
    変更後
    @method static hasColumns(string $table, array $columns): bool
  2. v13.4.0 シグネチャ変更
    変更前
    @method static hasColumns(string $table, array $columns): bool
    変更後
    @method static hasColumns(string $table, array<string> $columns): bool
  3. 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
  1. 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
  1. 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
  1. v11.0.0 追加
    変更後
    @method static hasMacro(string $name): bool

hasTable

v11.0.0 以前から

static @method

static hasTable(string $table): bool
  1. v11.0.0 追加
    変更後
    @method static hasTable(string $table): bool

hasView

v11.0.0 以前から

static @method

static hasView(string $view): bool
  1. v11.0.0 追加
    変更後
    @method static hasView(string $view): bool

macro

v11.0.0 以前から

static @method

static macro(string $name, object|callable $macro): void
  1. v11.0.0 追加
    変更後
    @method static macro(string $name, object|callable $macro): void
  2. 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
  3. 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
  1. v11.0.0 追加
    変更後
    @method static mixin(object $mixin, bool $replace = true): void

morphUsingUlids

v11.0.0 以前から

static @method

static morphUsingUlids(): void
  1. v11.0.0 追加
    変更後
    @method static morphUsingUlids(): void

morphUsingUuids

v11.0.0 以前から

static @method

static morphUsingUuids(): void
  1. v11.0.0 追加
    変更後
    @method static morphUsingUuids(): void

parseSchemaAndTable

v12.0.0 から

static @method

static parseSchemaAndTable(string $reference, string|bool|null $withDefaultSchema = null): array
  1. 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
  1. v11.0.0 追加
    変更後
    @method static rename(string $from, string $to): void

setConnection

v11.0.0 以前から

v12.0.0 で削除

  1. v11.0.0 追加
    変更後
    @method static setConnection(\Illuminate\Database\Connection $connection): \Illuminate\Database\Schema\Builder
  2. v12.0.0 削除
    変更前
    @method static setConnection(\Illuminate\Database\Connection $connection): \Illuminate\Database\Schema\Builder

table

v11.0.0 以前から

static @method

static table(string $table, \Closure $callback): void
  1. 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
  1. 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
  1. 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
  1. 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
  1. 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
  1. v11.0.0 追加
    変更後
    @method static withoutForeignKeyConstraints(\Closure $callback): mixed