Configuration

Configure your environment variables in the .env file:

APP_NAME=Chatloka APP_URL=https://your-domain.com APP_ENV=production APP_DEBUG=false DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=chaton DB_USERNAME=root DB_PASSWORD=your_password REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 QUEUE_CONNECTION=redis BROADCAST_DRIVER=redis

API Keys

Add your API keys for various services:

# WhatsApp Business API WHATSAPP_TOKEN=your_whatsapp_token WHATSAPP_PHONE_ID=your_phone_id # Facebook/Instagram FACEBOOK_APP_ID=your_app_id FACEBOOK_APP_SECRET=your_app_secret # Telegram TELEGRAM_BOT_TOKEN=your_bot_token # OpenAI for AI features OPENAI_API_KEY=your_openai_key

Mail Configuration

MAIL_MAILER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=noreply@yourdomain.com MAIL_FROM_NAME="${APP_NAME}"
Next: Requirements