Docs Configuration Environment Configuration

Environment Configuration

Understanding and configuring the .env file for your deployment.

64 views Updated 58 minutes ago

Environment Configuration

The .env file is the primary configuration file for CreateCouponWebsite. It controls database connections, mail settings, caching, and more.

Application Settings

APP_NAME="CreateCouponWebsite"

APP_ENV=production

APP_KEY=base64:your-generated-key

APP_DEBUG=false

APP_URL=https://your-domain.com

Never set APP_DEBUG=true in production. It can expose sensitive information.

Database Configuration

DB_CONNECTION=mysql

DB_HOST=127.0.0.1

DB_PORT=3306

DB_DATABASE=couponsite

DB_USERNAME=root

DB_PASSWORD=secret

Cache & Session

CACHE_DRIVER=redis

SESSION_DRIVER=redis

QUEUE_CONNECTION=redis

Using Redis for cache, sessions, and queues provides the best performance. If Redis is not available, use database or file drivers.

Mail Configuration

MAIL_MAILER=smtp

MAIL_HOST=smtp.mailtrap.io

MAIL_PORT=587

MAIL_USERNAME=null

MAIL_PASSWORD=null

MAIL_ENCRYPTION=tls

MAIL_FROM_ADDRESS=noreply@your-domain.com

Affiliate Network Keys

CJ_API_KEY=your-cj-api-key

AWIN_API_KEY=your-awin-api-key

IMPACT_API_KEY=your-impact-api-key

ADMITAD_API_KEY=your-admitad-api-key

Was this article helpful?