Model Class
tableName()
Signature
Section titled “Signature”tableName() — returns string
Available in: model
Category: Miscellaneous Functions
Description
Section titled “Description”Returns the name of the database table that this model is mapped to.
Examples
Section titled “Examples”// Check what table the user model uses
whatAmIMappedTo = model("user").tableName();