Table
final class Table implements Stringable
Database Table Object.
Methods
__construct(string $name, array|null $columns = [], array|null $foreignKeys = [])
Constructor.
array
getColumns()
Get column array.
array
getForeignKeys()
Get key array.
string
model(string|null $suffix = null)
Get the model name from table name.
string
factory(string|null $suffix = null)
Get the factory name from table name.
string
seeder(string|null $suffix = null)
Get the seeder name from table name.
string
migration()
Get the migration file name from table name.
string
__toString()
Class magic method to get the real table name.
Details
at line 40
__construct(string $name, array|null $columns = [], array|null $foreignKeys = [])
Constructor.
at line 56
array
getColumns()
Get column array.
at line 66
array
getForeignKeys()
Get key array.
at line 79
string
model(string|null $suffix = null)
Get the model name from table name.
at line 92
string
factory(string|null $suffix = null)
Get the factory name from table name.
at line 105
string
seeder(string|null $suffix = null)
Get the seeder name from table name.
at line 118
string
migration()
Get the migration file name from table name.
at line 131
string
__toString()
Class magic method to get the real table name.