Illuminate/Support/Facades/Schema

From Woozle Writes Code
< Illuminate‎ | Support‎ | Facades
Revision as of 21:34, 4 June 2023 by Woozle (talk | contribs) (Created page with "{{fmt/title|<u>Illuminate\Support\Facades\Schema</u> class}} * '''defined in''' [https://github.com/laravel/framework/blob/10.x/src/Illuminate/Support/Facades/Schema.php GitHub: 10.x] * '''defined as''' <tt>class Schema extends Facade</tt> ** '''extends''' {{l/nspace|Illuminate\Support\Facades\Facade}} * '''see also''' {{l/nspace|Illuminate\Database\Schema\Builder}} (...says a code comment) ==Methods== * public static function connection($name) * protected static functio...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Illuminate\Support\Facades\Schema class

Methods

  • public static function connection($name)
  • protected static function getFacadeAccessor()

These are listed in a comment at the top of the file, but I'm not yet sure how they relate:

* @method static void defaultStringLength(int $length)
* @method static void defaultMorphKeyType(string $type)
* @method static void morphUsingUuids()
* @method static void morphUsingUlids()
* @method static void useNativeSchemaOperationsIfPossible(bool $value = true)
* @method static bool createDatabase(string $name)
* @method static bool dropDatabaseIfExists(string $name)
* @method static bool hasTable(string $table)
* @method static bool hasColumn(string $table, string $column)
* @method static bool hasColumns(string $table, array $columns)
* @method static void whenTableHasColumn(string $table, string $column, \Closure $callback)
* @method static void whenTableDoesntHaveColumn(string $table, string $column, \Closure $callback)
* @method static string getColumnType(string $table, string $column)
* @method static array getColumnListing(string $table)
* @method static void table(string $table, \Closure $callback)
* @method static void create(string $table, \Closure $callback)
* @method static void drop(string $table)
* @method static void dropIfExists(string $table)
* @method static void dropColumns(string $table, string|array $columns)
* @method static void dropAllTables()
* @method static void dropAllViews()
* @method static void dropAllTypes()
* @method static array getAllTables()
* @method static void rename(string $from, string $to)
* @method static bool enableForeignKeyConstraints()
* @method static bool disableForeignKeyConstraints()
* @method static mixed withoutForeignKeyConstraints(\Closure $callback)
* @method static \Illuminate\Database\Connection getConnection()
* @method static \Illuminate\Database\Schema\Builder setConnection(\Illuminate\Database\Connection $connection)
* @method static void blueprintResolver(\Closure $resolver)