Table
final class Table implements Stringable (View source)
Database Table Object.
Methods
Constructor.
Get column array.
Get key array.
Get the model name from table name.
Get the Nova resource name from table name.
Get the title for Nova resource name from table name.
Get the factory name from table name.
Get the seeder name from table name.
Get the migration file name from table name.
Let it know if the table has timestamps.
Get the primary key column.
Class magic method to get the real table name.
Details
        
                            
    __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
    nova(string|null $suffix = null)
        
    
    Get the Nova resource name from table name.
        
                            string
    title(string|null $suffix = null)
        
    
    Get the title for Nova resource 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.
        
                            bool
    hasTimestamps()
        
    
    Let it know if the table has timestamps.
        
                            Column|null
    getPrimaryColumn()
        
    
    Get the primary key column.
        
                            string
    __toString()
        
    
    Class magic method to get the real table name.