Skip to content

Model Class

tableName()

tableName() — returns string

Available in: model Category: Miscellaneous Functions

Returns the name of the database table that this model is mapped to.

// Check what table the user model uses
whatAmIMappedTo = model("user").tableName();