Column
final class Column implements Stringable (View source)
Database Column Object.
Methods
Column constructor.
Get column information array.
Create a instance.
Get the row string form database factory, then return the string for Seeder class.
Get the row string for migration file, then return the string for migration class.
Get the row string for migration file, then return the string for migration class.
Get the title for Nova field title from column name.
Class magic method to get the instance information for a Exception
No description
Details
__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
novaField()
Get the row string for migration file, then return the string for migration class.
string
title()
Get the title for Nova field title from column name.
string
__toString()
Class magic method to get the instance information for a Exception
string|null
cast()
No description