Skip to content

Commit 97b4184

Browse files
authored
Doc-block correction (#39485)
The `from()` function is missing from the doc-blocks https://laravel.com/docs/8.x/migrations#column-modifiers
1 parent d1093f5 commit 97b4184

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Illuminate/Database/Schema/ColumnDefinition.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* @method $this comment(string $comment) Add a comment to the column (MySQL/PostgreSQL)
1515
* @method $this default(mixed $value) Specify a "default" value for the column
1616
* @method $this first() Place the column "first" in the table (MySQL)
17+
* @method $this from(int $startingValue) Set the starting value of an auto-incrementing field (MySQL / PostgreSQL)
1718
* @method $this generatedAs(string|Expression $expression = null) Create a SQL compliant identity column (PostgreSQL)
1819
* @method $this index(string $indexName = null) Add an index
1920
* @method $this nullable(bool $value = true) Allow NULL values to be inserted into the column

0 commit comments

Comments
 (0)