Laravel Migrations: Columns
Creating Columns
Column Modifiers
In addition to the column types listed above, there are several column "modifiers" you may use while adding a column to a database table.
- ->after('column').
- ->autoIncrement().
- ->charset('utf8').
- ->collation('utf8_unicode_ci').
- ->comment('my comment').
- ->default($value).
- ->first().
- ->nullable($value = true).
- ->storedAs($expression).
- ->unsigned().
- ->useCurrent().
- ->virtualAs($expression).