/** * Generates the real table name from plugin and tablename. * @param iPlugin $plugin * @param string $tableName */ protected function getTableName(iPlugin $plugin, $tableName) { return App()->getDb()->tablePrefix . strtolower($plugin->getName()) . "_{$tableName}"; }