Environment Configuration
The .env file is the primary configuration file for MangaReader Pro. It controls database connections, mail settings, caching, and more.
Application Settings
APP_NAME="MangaReader Pro"
APP_ENV=production
APP_KEY=base64:your-generated-key
APP_DEBUG=false
APP_URL=https://your-domain.com
> [!WARNING] 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=mangareader
DB_USERNAME=root
DB_PASSWORD=secret
Cache & Session
CACHE_DRIVER=redis
SESSION_DRIVER=redis
QUEUE_CONNECTION=redis
> [!TIP] 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