Back

tableName()

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

Name Type Required Default Description
// Check what table the user model uses
whatAmIMappedTo = model("user").tableName();
Copied!