Column
final class Column implements Stringable
Database Column Object.
Methods
__construct(string $field, string $type, bool $unsigned = false, bool $autoIncrement = false, bool $notNull = false, bool $primaryKey = false, string|null $bracket = null, string|null $default = null, string|null $extra = null)
Column constructor.
array
toArray()
Get column information array.
static Column
make(string $field, string $type, bool $unsigned = false, bool $autoIncrement = false, bool $notNull = false, bool $primaryKey = false, string|null $bracket = null, string|null $default = null, string|null $extra = null)
Create a instance.
string
fake()
Get the row string form database factory, then return the string for Seeder class.
string
migration()
Get the row string for migration file, then return the string for migration class.
string
__toString()
Class magic method to get the instance information for a Exception
Details
at line 25
__construct(string $field, string $type, bool $unsigned = false, bool $autoIncrement = false, bool $notNull = false, bool $primaryKey = false, string|null $bracket = null, string|null $default = null, string|null $extra = null)
Column constructor.
at line 44
array
toArray()
Get column information array.
at line 72
static Column
make(string $field, string $type, bool $unsigned = false, bool $autoIncrement = false, bool $notNull = false, bool $primaryKey = false, string|null $bracket = null, string|null $default = null, string|null $extra = null)
Create a instance.
at line 101
string
fake()
Get the row string form database factory, then return the string for Seeder class.
at line 111
string
migration()
Get the row string for migration file, then return the string for migration class.
at line 121
string
__toString()
Class magic method to get the instance information for a Exception