Triplex v1.3.0 API Reference

Modules

Useful functions for any triplex mix task

This is the main module of Triplex

All the configuration for Triplex basic functionality is here

This is a basic plug that ensure the tenant is loaded

This is a struct that holds the configuration for Triplex.EnsurePlug

This is a basic plug that loads the current tenant assign from a given param

This is a struct that holds all configuration for Triplex.ParamPlug

This module have some basic functions for our triplex plugs

This is a basic plug that loads the current tenant assign from a given value set on session

This is a struct that holds the configuration for Triplex.SessionPlug

This is a basic plug that loads the current tenant assign from a given value set on subdomain

This is a struct that holds the configuration for Triplex.SubdomainPlug

Mix Tasks

Generates a migration

Runs the pending tenant migrations for the given repository

Displays the up / down migration status for the given repository

Generates a migration to create the tenant table in the default database (MySQL only)

Reverts applied migrations in the given repository