Skip to content

Environment Variables

Multidomain

VarDefaultPurpose
APP_MAIN_DOMAINlocalhostBase domain (e.g. yourapp.test)
APP_SINGLE_DOMAINfalseCollapse all portals onto one host
SESSION_DOMAINnullShared session cookie domain for SSO, e.g. .yourapp.test. Leave null in single-domain mode

Demo auth feature

Not required by the starter kit core — only relevant if you keep the phone-verification / OTP demo flow. See the Auth portal for how each is used.

VarDefaultPurpose
PHONE_VERIFICATION_ENABLEDfalseTurn the phone/OTP flow on. Off by default — leave off if you don't need it
PHONE_COUNTRY_MODEsinglesingle (fixed code) or multi (free-text code)
PHONE_DEFAULT_COUNTRY_CODE+91Fixed country code used in single mode
EMAIL_VERIFICATION_GRACE_DAYS7Days before unverified email hard-blocks access
OTP_EXPIRES_MINUTES10How long a generated OTP stays valid (also shown in the SMS/email text sent to the user)
TWILIO_ACCOUNT_SIDTwilio account SID, required to actually send OTP SMS
TWILIO_AUTH_TOKENTwilio auth token
TWILIO_PHONE_NUMBERSending number for OTP SMS

Without Twilio credentials set, SMS sends fail silently (logged, not thrown) — fine for local dev where you don't need real texts, but phone verification won't be reachable by an actual user until these are set.

See .env.example for the full list of standard Laravel env vars (database, mail, queue, etc.) — unchanged from a standard Laravel install.