App.php
1 month ago
Artisan.php
1 month ago
Auth.php
1 month ago
Blade.php
1 month ago
Broadcast.php
1 month ago
Bus.php
1 month ago
Cache.php
1 month ago
Config.php
1 month ago
Cookie.php
1 month ago
Crypt.php
1 month ago
DB.php
1 month ago
Date.php
1 month ago
Event.php
1 month ago
Facade.php
1 month ago
File.php
1 month ago
Gate.php
1 month ago
Hash.php
1 month ago
Http.php
1 month ago
Lang.php
1 month ago
Log.php
1 month ago
Mail.php
1 month ago
Notification.php
1 month ago
ParallelTesting.php
1 month ago
Password.php
1 month ago
Queue.php
1 month ago
RateLimiter.php
1 month ago
Redirect.php
1 month ago
Redis.php
1 month ago
Request.php
1 month ago
Response.php
1 month ago
Route.php
1 month ago
Schema.php
1 month ago
Session.php
1 month ago
Storage.php
1 month ago
URL.php
1 month ago
Validator.php
1 month ago
View.php
1 month ago
Vite.php
1 month ago
Schema.php
68 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Support\Facades; |
| 4 | |
| 5 | /** |
| 6 | * @method static void defaultStringLength(int $length) |
| 7 | * @method static void defaultMorphKeyType(string $type) |
| 8 | * @method static void morphUsingUuids() |
| 9 | * @method static void morphUsingUlids() |
| 10 | * @method static void useNativeSchemaOperationsIfPossible(bool $value = true) |
| 11 | * @method static bool createDatabase(string $name) |
| 12 | * @method static bool dropDatabaseIfExists(string $name) |
| 13 | * @method static bool hasTable(string $table) |
| 14 | * @method static bool hasColumn(string $table, string $column) |
| 15 | * @method static bool hasColumns(string $table, array $columns) |
| 16 | * @method static void whenTableHasColumn(string $table, string $column, \Closure $callback) |
| 17 | * @method static void whenTableDoesntHaveColumn(string $table, string $column, \Closure $callback) |
| 18 | * @method static string getColumnType(string $table, string $column) |
| 19 | * @method static array getColumnListing(string $table) |
| 20 | * @method static void table(string $table, \Closure $callback) |
| 21 | * @method static void create(string $table, \Closure $callback) |
| 22 | * @method static void drop(string $table) |
| 23 | * @method static void dropIfExists(string $table) |
| 24 | * @method static void dropColumns(string $table, string|array $columns) |
| 25 | * @method static void dropAllTables() |
| 26 | * @method static void dropAllViews() |
| 27 | * @method static void dropAllTypes() |
| 28 | * @method static void getAllTables() |
| 29 | * @method static void rename(string $from, string $to) |
| 30 | * @method static bool enableForeignKeyConstraints() |
| 31 | * @method static bool disableForeignKeyConstraints() |
| 32 | * @method static mixed withoutForeignKeyConstraints(\Closure $callback) |
| 33 | * @method static \Illuminate\Database\Connection getConnection() |
| 34 | * @method static \Illuminate\Database\Schema\Builder setConnection(\Illuminate\Database\Connection $connection) |
| 35 | * @method static void blueprintResolver(\Closure $resolver) |
| 36 | * |
| 37 | * @see \Illuminate\Database\Schema\Builder |
| 38 | * @internal |
| 39 | */ |
| 40 | class Schema extends Facade |
| 41 | { |
| 42 | /** |
| 43 | * Indicates if the resolved facade should be cached. |
| 44 | * |
| 45 | * @var bool |
| 46 | */ |
| 47 | protected static $cached = \false; |
| 48 | /** |
| 49 | * Get a schema builder instance for a connection. |
| 50 | * |
| 51 | * @param string|null $name |
| 52 | * @return \Illuminate\Database\Schema\Builder |
| 53 | */ |
| 54 | public static function connection($name) |
| 55 | { |
| 56 | return static::$app['db']->connection($name)->getSchemaBuilder(); |
| 57 | } |
| 58 | /** |
| 59 | * Get the registered name of the component. |
| 60 | * |
| 61 | * @return string |
| 62 | */ |
| 63 | protected static function getFacadeAccessor() |
| 64 | { |
| 65 | return 'db.schema'; |
| 66 | } |
| 67 | } |
| 68 |