Laravels extension

on

Methods

toBigIncrements() String
Auto-incrementing UNSIGNED BIGINT (primary key) equivalent column.
toBigInteger() String
BIGINT equivalent column.
toBinary() String
BLOB equivalent column.
toBoolean() String
BOOLEAN equivalent column.
toChar({int length}) String
CHAR equivalent column with a length.
toDate() String
DATE equivalent column.
toDateTime({int value}) String
DATETIME equivalent column with precision (total digits).
toDateTimeTz({int value}) String
DATETIME (with timezone) equivalent column with precision (total digits).
toDecimal({int total, double decimal}) String
DECIMAL equivalent column with precision (total digits) and scale (decimal digits).
toDouble({int total, double decimal}) String
DOUBLE equivalent column with precision (total digits) and scale (decimal digits).
toEncrpt() String
toEnum({List value}) String
ENUM equivalent column.
toFloat({int total, double decimal}) String
FLOAT equivalent column with a precision (total digits) and scale (decimal digits).
toForeignId() String
Alias of $table->unsignedBigInteger('user_id')
togeometry() String
GEOMETRY equivalent column.
toGeometryCollection() String
GEOMETRYCOLLECTION equivalent column.
toIncrements() String
Auto-incrementing UNSIGNED INTEGER (primary key) equivalent column.
toInteger() String
INTEGER equivalent column.
toIpAddress() String
IP address equivalent column.
toJson() String
JSON equivalent column.
toJsonb() String
JSONB equivalent column.
toLineString() String
LINESTRING equivalent column.
toLongText() String
LONGTEXT equivalent column.
toMacAddress() String
MAC address equivalent column.
toMediumIncrements() String
Auto-incrementing UNSIGNED MEDIUMINT (primary key) equivalent column.
toMediumInteger() String
MEDIUMINT equivalent column.
toMediumText() String
MEDIUMTEXT equivalent column.
toMorphs() String
Adds taggable_id UNSIGNED BIGINT and taggable_type VARCHAR equivalent columns.