Return to v2.0 docs

tableName()


Model Class Miscellaneous Functions string model


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

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

Related Functions

Miscellaneous Functions