Mention default value helper function in database schema documentation.
This commit is contained in:
parent
7140be474d
commit
a03bcb521b
|
@ -69,6 +69,7 @@ ## Adding Columns
|
||||||
`$table->text('description');` | TEXT equivalent to the table
|
`$table->text('description');` | TEXT equivalent to the table
|
||||||
`$table->blob('data');` | BLOB equivalent to the table
|
`$table->blob('data');` | BLOB equivalent to the table
|
||||||
`->nullable()` | Designate that the column allows NULL values
|
`->nullable()` | Designate that the column allows NULL values
|
||||||
|
`->default($value)` | Declare a default value for a column
|
||||||
|
|
||||||
> **Note:** Laravel's "boolean" type maps to a small integer column on all database systems.
|
> **Note:** Laravel's "boolean" type maps to a small integer column on all database systems.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue