Skip to main content

Environment Variables (.env)

The .env file is the heart of FeedbackPulse's configuration. It's created automatically during installation, but you can edit it manually anytime.


๐Ÿ“ File Locationโ€‹

/var/www/feedbackpulse-saas/.env

โš ๏ธ Security: The .env file contains sensitive data (database passwords, API keys). Never commit it to version control or expose it publicly. It should have 640 permissions.


๐Ÿ”ง After Editing .envโ€‹

After making changes, clear the config cache:

php artisan config:clear
php artisan config:cache # Optional: cache for production performance

๐Ÿ“‹ Complete Variable Referenceโ€‹

๐Ÿ  Application Settingsโ€‹

VariableDefaultDescription
APP_NAMEFeedbackPulsePlatform name (shown in emails, titles)
APP_ENVproductionEnvironment: production, local, staging
APP_KEY(auto-generated)Encryption key. Never change after installation!
APP_DEBUGfalseShow detailed errors. Must be false in production!
APP_URLhttps://yourdomain.comFull URL of your platform (with https)
APP_LOCALEenDefault language
APP_FALLBACK_LOCALEenFallback language
BCRYPT_ROUNDS12Password hashing strength (higher = slower but more secure)

โš ๏ธ APP_DEBUG=true will expose sensitive information (database credentials, API keys) in error pages. Never enable in production except for brief debugging sessions.

๐Ÿ—„๏ธ Databaseโ€‹

VariableDefaultDescription
DB_CONNECTIONmysqlDatabase driver: mysql, mariadb, sqlite, pgsql
DB_HOST127.0.0.1Database server address
DB_PORT3306Database port
DB_DATABASEfeedbackpulseDatabase name
DB_USERNAMErootDatabase username
DB_PASSWORD(empty)Database password

๐Ÿ“ง Email / SMTPโ€‹

VariableDefaultDescription
MAIL_MAILERsmtpMail driver: smtp, ses, postmark, sendmail, log
MAIL_HOSTsmtp.mailgun.orgSMTP server host
MAIL_PORT587SMTP port (587 for TLS, 465 for SSL)
MAIL_USERNAME(empty)SMTP username
MAIL_PASSWORD(empty)SMTP password
MAIL_ENCRYPTIONtlsEncryption: tls, ssl, or null
MAIL_FROM_ADDRESS[email protected]Sender email address
MAIL_FROM_NAMEFeedbackPulseSender name

๐Ÿ’ณ Stripe (Optional)โ€‹

VariableDefaultDescription
STRIPE_PUBLISHABLE_KEY(empty)Stripe publishable key (starts with pk_)
STRIPE_SECRET_KEY(empty)Stripe secret key (starts with sk_)
STRIPE_WEBHOOK_SECRET(empty)Stripe webhook signing secret (starts with whsec_)

๐Ÿ’ฐ PayPal (Optional)โ€‹

VariableDefaultDescription
PAYPAL_CLIENT_ID(empty)PayPal REST API client ID
PAYPAL_CLIENT_SECRET(empty)PayPal REST API client secret
PAYPAL_WEBHOOK_ID(empty)PayPal webhook ID for verification
PAYPAL_MODEsandboxMode: sandbox (testing) or live (production)

๐Ÿ”‘ Social Login (Optional)โ€‹

VariableDefaultDescription
GOOGLE_CLIENT_ID(empty)Google OAuth client ID
GOOGLE_CLIENT_SECRET(empty)Google OAuth client secret
GITHUB_CLIENT_ID(empty)GitHub OAuth client ID
GITHUB_CLIENT_SECRET(empty)GitHub OAuth client secret

๐Ÿค– AI / OpenAI (Optional)โ€‹

VariableDefaultDescription
OPENAI_API_KEY(empty)OpenAI API key for sentiment analysis, auto-tagging, AI replies

๐Ÿค– reCAPTCHA (Optional)โ€‹

VariableDefaultDescription
RECAPTCHA_SITE_KEY(empty)Google reCAPTCHA v2/v3 site key
RECAPTCHA_SECRET_KEY(empty)Google reCAPTCHA secret key

๐Ÿช Session & Cacheโ€‹

VariableDefaultDescription
SESSION_DRIVERfileSession storage: file, database, redis, cookie
SESSION_LIFETIME120Session timeout in minutes
SESSION_DOMAIN(empty)Cookie domain (set to .yourdomain.com for subdomains)
SESSION_SECURE_COOKIEtrueRequire HTTPS for session cookies
CACHE_STOREfileCache driver: file, database, redis, memcached

๐Ÿ“ฆ Queue & Jobsโ€‹

VariableDefaultDescription
QUEUE_CONNECTIONsyncQueue driver: sync, database, redis

โฐ Cron (Shared Hosting)โ€‹

VariableDefaultDescription
CRON_TOKEN(auto-generated)Secret token for the web-based cron endpoint /cron/run?token=. Auto-generated during installation. Required only if using URL-based cron instead of CLI.

๐Ÿ“ File Storageโ€‹

VariableDefaultDescription
FILESYSTEM_DISKlocalDefault storage disk: local, public, s3

๐Ÿชต Loggingโ€‹

VariableDefaultDescription
LOG_CHANNELstackLog channel: stack, single, daily, syslog
LOG_LEVELerrorMin log level: debug, info, notice, warning, error, critical

๐Ÿ’ก Example Production .envโ€‹

APP_NAME="FeedbackPulse"
APP_ENV=production
APP_KEY=base64:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
APP_DEBUG=false
APP_URL=https://feedback.mycompany.com

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=feedbackpulse
DB_USERNAME=fp_user
DB_PASSWORD=super_secure_password_here

SESSION_DRIVER=file
SESSION_LIFETIME=120
SESSION_DOMAIN=.feedback.mycompany.com
SESSION_SECURE_COOKIE=true
CACHE_STORE=file

QUEUE_CONNECTION=sync

MAIL_MAILER=smtp
MAIL_HOST=smtp.mailgun.org
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=mailgun_password_here
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME="FeedbackPulse"

STRIPE_PUBLISHABLE_KEY=pk_live_xxxxx
STRIPE_SECRET_KEY=sk_live_xxxxx
STRIPE_WEBHOOK_SECRET=whsec_xxxxx

OPENAI_API_KEY=sk-xxxxx

LOG_CHANNEL=daily
LOG_LEVEL=error

โญ๏ธ Next Stepsโ€‹