Skip to content

Commit 2cc6d1b

Browse files
authored
Added whenTableHasColumn and whenTableNotHasColumn to Schema Facade
1 parent fc75acc commit 2cc6d1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Support/Facades/Schema.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* @method static bool hasColumn(string $table, string $column)
1616
* @method static bool hasColumns(string $table, array $columns)
1717
* @method static bool dropColumns(string $table, array $columns)
18+
* @method static void whenTableHasColumn(string $table, string $column, \Closure $callback)
19+
* @method static void whenTableNotHasColumn(string $table, string $column, \Closure $callback)
1820
* @method static bool hasTable(string $table)
1921
* @method static void defaultStringLength(int $length)
2022
* @method static array getColumnListing(string $table)

0 commit comments

Comments
 (0)