# ─────────────────────────────────────────────────────────────────────────────
# Production .env for cPanel — copy to ".env" on the server and fill in real values.
# Backend domain: https://api-udyogo.demosystem.in
# Frontend domain: https://udyogo-sales.demosystem.in
# ─────────────────────────────────────────────────────────────────────────────

APP_NAME="Udyogo Sales"
APP_ENV=production
APP_KEY=                              # run: php artisan key:generate  (or paste a base64:... key)
APP_DEBUG=false
APP_URL=https://api-udyogo.demosystem.in

APP_LOCALE=en
APP_FALLBACK_LOCALE=en

# Where the SPA lives — used for CORS (comma-separate to allow more origins).
CORS_ALLOWED_ORIGINS=https://udyogo-sales.demosystem.in

LOG_CHANNEL=stack
LOG_LEVEL=error

# ── Database (create in cPanel → MySQL Databases, then paste here) ──
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_cpanel_db_name
DB_USERNAME=your_cpanel_db_user
DB_PASSWORD=your_cpanel_db_password

# Sessions/cache/queue on shared hosting: database is safest (no Redis needed).
SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_SECURE_COOKIE=true
CACHE_STORE=database
QUEUE_CONNECTION=database

FILESYSTEM_DISK=public
BCRYPT_ROUNDS=12

# Token auth uses Bearer tokens (no stateful cookies), so SANCTUM stateful
# domains are not required. If you ever switch to cookie auth, set:
# SANCTUM_STATEFUL_DOMAINS=udyogo-sales.demosystem.in
