Skip to content

nexacrm.

NexaCRM Documentation

The same product docs available in the dashboard—guides for setup, architecture, modules, and day-to-day use.

Getting Started · Configuration
docs/getting-started/configuration.md PDF Download all

Configuration

Environment and config reference for the CRM.

Primary source: .env / .env.example. Most values map into Laravel config/*.php files.

After changing .env:

php artisan config:clear
# production:
php artisan config:cache

Application

Variable Default (example) Purpose
APP_NAME NexaCRM Display name / mail from name
APP_ENV local Environment
APP_KEY (generated) Encryption (required)
APP_DEBUG true Detailed errors (disable in production)
APP_URL http://127.0.0.1:8000 Must match the URL you open (include port). php artisan serve uses this host and port.
APP_TIMEZONE UTC Default application timezone
APP_LOCALE en Locale
LOG_CHANNEL stack Logging
LOG_LEVEL debug Log verbosity
BCRYPT_ROUNDS 12 Password hashing cost

First-run Super Admin

Variable Default Purpose
SETUP_SUPERADMIN_NAME Super Admin Display name used if seeding creates the first Super Admin
SETUP_SUPERADMIN_EMAIL (empty) Optional. Together with the password, creates the first Super Admin during php artisan db:seed
SETUP_SUPERADMIN_PASSWORD (empty) Optional. Never commit a real value. Remove after first-run, before php artisan config:cache

Prefer php artisan nexacrm:create-super-admin instead of putting a password in .env. If only one of email/password is set, seeding fails. If both are empty, seeding skips account creation.

See Installation.


Marketing site

Variable Default Purpose
MARKETING_BRAND_NAME NexaCRM Public brand name
MARKETING_TAGLINE A Modern Multi-Tenant CRM for Growing Businesses Footer / SEO tagline
MARKETING_DESCRIPTION (product description) Default meta description
MARKETING_CONTACT_EMAIL hello@example.com Public contact email
MARKETING_CONTACT_PHONE +1 (555) 010-2000 Public contact phone
MARKETING_CONTACT_ADDRESS (empty) Optional public address

Database & session / cache

Variable Default Purpose
DB_CONNECTION sqlite sqlite or mysql
DB_HOST / DB_PORT / DB_DATABASE / DB_USERNAME / DB_PASSWORD (commented) MySQL settings
SESSION_DRIVER database Session store
SESSION_LIFETIME 120 Minutes
SESSION_SECURE_COOKIE false Set true behind HTTPS in production
CACHE_STORE database Cache backend

Queue

Variable Default Purpose
QUEUE_CONNECTION database Use database in local/prod; tests force sync
CHANNELS_WEBHOOK_QUEUE channels Queue name for channel webhook jobs
CHANNELS_WEBHOOK_RATE_LIMIT 60 Per-minute throttle for /webhooks/channels/{uuid}

See Queues.


Mail

Variable Default Purpose
MAIL_MAILER log log writes to storage logs (not real inboxes)
MAIL_HOST / MAIL_PORT 127.0.0.1 / 2525 SMTP
MAIL_USERNAME / MAIL_PASSWORD null SMTP auth
MAIL_FROM_ADDRESS / MAIL_FROM_NAME hello@example.com / ${APP_NAME} From header

Local inbox tip: Mailpit + MAIL_MAILER=smtp, MAIL_HOST=127.0.0.1, MAIL_PORT=1025.

Auth emails (verification / password reset) send immediately (no queue worker required).

Email verification is off after a fresh migrate. Enable it in Super Admin → Settings only after a real mailer is configured. If verification is on while MAIL_MAILER is log or array, the verify-email page shows a local preview link.


Website lead webhook

Server-to-server form ingestion (not the Channels “Website Forms” adapter).

Variable Default Purpose
WEBSITE_LEAD_WEBHOOK_SECRET (empty) Shared secret header validation — never expose in browser JS
WEBSITE_LEAD_CREATED_BY_EMAIL (empty) Optional owner email for website-form leads. If empty, the webhook uses the unique tenant that has an active admin. Set this when more than one tenant exists. Does not create an account.
WEBSITE_LEAD_RATE_LIMIT 10 Requests per minute

Endpoint: POST /webhooks/leads/website
Docs: Website Forms.


Channels / Meta

Variable Default Purpose
META_APP_SECRET (empty) Validates Meta X-Hub-Signature-256 for Facebook Lead Ads & WhatsApp
META_GRAPH_VERSION v21.0 Graph API version
CHANNELS_WEBHOOK_QUEUE channels Job queue

Per-tenant tokens (page token, WhatsApp token, verify token) are stored encrypted on each channel_connections row, not in .env.


Lead follow-up reminders

Variable Default Purpose
LEAD_FOLLOW_UP_REMINDERS_ENABLED true Master switch
LEAD_FOLLOW_UP_REMINDER_TIME 08:00 Daily schedule time
LEAD_FOLLOW_UP_DEFAULT_TIME 09:00 Default follow-up time of day
LEAD_FOLLOW_UP_REMINDER_1D_ENABLED true Day-before tier
LEAD_FOLLOW_UP_REMINDER_2H_ENABLED true Hours-before tier
LEAD_FOLLOW_UP_REMINDER_DUE_ENABLED true Due tier
LEAD_FOLLOW_UP_REMINDER_OVERDUE_ENABLED true Overdue tier
LEAD_FOLLOW_UP_REMINDER_OVERDUE_REPEAT_DAYS 1 Overdue repeat interval

Task reminders

Variable Default Purpose
TASK_REMINDERS_ENABLED true Master switch
TASK_REMINDER_TIME 08:15 Daily schedule time
TASK_REMINDER_DUE_ENABLED true Due tier
TASK_REMINDER_OVERDUE_ENABLED true Overdue tier
TASK_REMINDER_OVERDUE_REPEAT_DAYS 1 Overdue repeat

See Scheduler.


Optional demo tenant

Variable Default Purpose
DEMO_SEED false When true, php artisan db:seed also runs DemoDataSeeder. Leave false on buyer production installs
DEMO_SEED_PASSWORD (empty) Required for DemoDataSeeder and php artisan demo:reset. Never commit the value
DEMO_RESET_ENABLED false Allows scheduled demo:reset. Leave false until you explicitly want daily resets
DEMO_RESET_TIME 03:15 Clock time for the scheduled reset

See Demo environment.


Tenancy

Variable Purpose
TENANCY_FAIL_CLOSED_WITHOUT_CONTEXT When set, forces fail-closed (or open) company scoping without context. If unset, production fails closed and local/dev does not.

See Multi-tenancy.


Related config files

File Role
config/permissions.php RBAC module/action registry
config/channels.php Channel providers + Meta + webhook settings
config/tenancy.php Tenant fail-closed behavior
config/website_leads.php Website webhook settings
config/lead_reminders.php / config/task_reminders.php Reminder schedules
config/adminlte.php Tenant sidebar / branding
config/setup.php First-run Super Admin env + optional DEMO_SEED
config/demo.php Live-demo tenant identity (no passwords)
config/marketing.php Public brand name, tagline, contact, and packaged logo/favicon paths
config/queue.php Queue connections