# upMVC Environment Configuration
# Copy this file to .env and modify according to your needs
# Application Environment (development, production, testing)
APP_ENV=development
# Application Debug Mode (true/false)
APP_DEBUG=true
# Application Domain - index.php is in ROOT now (not in /public/)
# FOR PHP BUILT-IN SERVER (php -S localhost:8000): use http://localhost:8000 with empty SITE_PATH
# FOR APACHE/XAMPP: use http://localhost with SITE_PATH=/upMVC
DOMAIN_NAME=http://localhost
# Application Path - /upMVC for Apache in subfolder, empty for PHP built-in server
SITE_PATH=/upMVC/public
# Database Configuration
DB_HOST=localhost
DB_PORT=3306
DB_NAME=your_database_name
DB_USER=your_database_user
DB_PASS=your_database_password
# Cache Configuration
CACHE_DRIVER=file
CACHE_TTL=3600
# Session Configuration
SESSION_LIFETIME=120
SESSION_SECURE=false
SESSION_HTTP_ONLY=true
# Mail Configuration
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=your_mail_username
MAIL_PASSWORD=your_mail_password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=noreply@yourdomain.com
MAIL_FROM_NAME="upMVC Application"
# Security
APP_KEY=your_app_key_here
BCRYPT_ROUNDS=12
# Logging
LOG_LEVEL=debug
LOG_CHANNEL=file
# Optional: custom log directory (relative to app root or absolute)
# Examples:
# LOG_PATH=src/logs # default
# LOG_PATH=storage/logs # custom relative directory
# LOG_PATH=D:/logs/upmvc # absolute path (Windows)
LOG_PATH=src/logs
# Rate Limiting
RATE_LIMIT_REQUESTS=60
RATE_LIMIT_MINUTES=1
# Route Discovery Configuration
ROUTE_ERROR_HANDLING=true # Enable/disable comprehensive error handling
ROUTE_VERBOSE_LOGGING=true # Enable/disable success messages
ROUTE_SCREEN_OUTPUT=true # Enable/disable on-screen error display
ROUTE_SUBMODULE_DISCOVERY=true # Enable/disable submodule discovery
# Protected Routes (Optional - defaults defined in Start.php)
# Comma-separated list of routes requiring authentication
# Example: PROTECTED_ROUTES=/dashboardexample/*,/admin/*,/users/*,/api/*,/moda
PROTECTED_ROUTES=
|