Environment Variables
All configuration is done through the.env file. Copy .env.example to get started.
Application Configuration
APP_NAME
Type: StringDefault:
LaravelExample:
ElectroFix AI
The name of your application. Used in emails, notifications, and UI elements.
APP_ENV
Type: StringDefault:
productionOptions:
local, staging, production
The environment your application is running in. Affects error handling and logging behavior.
APP_DEBUG
Type: BooleanDefault:
falseExample:
true (local), false (production)
Enables detailed error messages with stack traces. Never enable in production.
APP_URL
Type: URLDefault:
http://localhostExample:
https://electrofix.yourdomain.com
The base URL of your application. Used for generating links and redirects.
APP_KEY
Type: String (base64 encoded)Default: Empty
Generate:
php artisan key:generate
Encryption key for securing sessions and encrypted data. Must be set before use.
APP_LOCALE
Type: StringDefault:
enExample:
es for Spanish
Default language locale for the application.
APP_FALLBACK_LOCALE
Type: StringDefault:
en
Fallback locale when current locale is not available.
APP_FAKER_LOCALE
Type: StringDefault:
en_USExample:
es_MX for Mexico
Locale for Faker library (used in testing and seeding).
APP_MAINTENANCE_DRIVER
Type: StringDefault:
fileOptions:
file, cache
Storage driver for maintenance mode status.
Database Configuration
DB_CONNECTION
Type: StringDefault:
sqliteOptions:
sqlite, mysql, mariadb, pgsql
Database driver to use.
DB_HOST
Type: StringDefault:
127.0.0.1
Database server hostname.
DB_PORT
Type: IntegerDefault:
3306 (MySQL), 5432 (PostgreSQL)
Database server port.
DB_DATABASE
Type: StringDefault:
laravel (MySQL), database.sqlite (SQLite)
Database name (MySQL/PostgreSQL) or file path (SQLite).
DB_USERNAME
Type: StringDefault:
root
Database username.
DB_PASSWORD
Type: StringDefault: Empty Database password.
DB_FOREIGN_KEYS
Type: BooleanDefault:
true
Enable foreign key constraints (SQLite only).
Session Configuration
SESSION_DRIVER
Type: StringDefault:
databaseOptions:
file, cookie, database, memcached, redis, array
Where to store session data.
SESSION_LIFETIME
Type: Integer (minutes)Default:
120
How long sessions should remain valid (in minutes).
SESSION_ENCRYPT
Type: BooleanDefault:
false
Whether to encrypt session data.
SESSION_PATH
Type: StringDefault:
/
Session cookie path.
SESSION_DOMAIN
Type: StringDefault:
null
Domain for session cookie. Set to your domain in production.
SESSION_SECURE_COOKIE
Type: BooleanDefault:
falseProduction:
true
Only send cookies over HTTPS. Must be true in production.
SESSION_SAME_SITE
Type: StringDefault:
laxOptions:
lax, strict, none
SameSite cookie attribute for CSRF protection.
Cache Configuration
CACHE_STORE
Type: StringDefault:
databaseOptions:
file, database, redis, memcached, array
Cache storage driver.
CACHE_PREFIX
Type: StringDefault: Auto-generated from app name Prefix for cache keys to avoid collisions.
Queue Configuration
QUEUE_CONNECTION
Type: StringDefault:
databaseOptions:
sync, database, redis, sqs, beanstalkd
Queue driver for background jobs.
DB_QUEUE_TABLE
Type: StringDefault:
jobs
Table name for database queue driver.
DB_QUEUE
Type: StringDefault:
default
Default queue name.
DB_QUEUE_RETRY_AFTER
Type: Integer (seconds)Default:
90
Seconds before retrying failed jobs.
Mail Configuration
MAIL_MAILER
Type: StringDefault:
logOptions:
smtp, sendmail, ses, postmark, log, array
Mail driver to use.
MAIL_HOST
Type: StringDefault:
127.0.0.1Example:
smtp.gmail.com
SMTP server hostname.
MAIL_PORT
Type: IntegerDefault:
2525Common:
587 (TLS), 465 (SSL), 25 (unencrypted)
SMTP server port.
MAIL_USERNAME
Type: StringDefault:
null
SMTP authentication username.
MAIL_PASSWORD
Type: StringDefault:
null
SMTP authentication password.
MAIL_ENCRYPTION
Type: StringDefault:
nullOptions:
tls, ssl, null
SMTP encryption method.
MAIL_FROM_ADDRESS
Type: EmailDefault:
[email protected]Example:
[email protected]
Default “from” email address.
MAIL_FROM_NAME
Type: StringDefault:
${APP_NAME}Example:
ElectroFix AI
Default “from” name.
Logging Configuration
LOG_CHANNEL
Type: StringDefault:
stackOptions:
stack, single, daily, stderr, syslog
Logging channel to use.
LOG_STACK
Type: StringDefault:
single
Channels to use when LOG_CHANNEL is stack.
LOG_LEVEL
Type: StringDefault:
debugOptions:
debug, info, notice, warning, error, critical, alert, emergency
Minimum log level to record.
LOG_DEPRECATIONS_CHANNEL
Type: StringDefault:
null
Separate channel for deprecation warnings.
Broadcasting Configuration
BROADCAST_CONNECTION
Type: StringDefault:
logOptions:
pusher, redis, log, null
Broadcasting driver for real-time events.
Filesystem Configuration
FILESYSTEM_DISK
Type: StringDefault:
localOptions:
local, public, s3
Default filesystem disk.
AWS_ACCESS_KEY_ID
Type: StringRequired for S3 AWS access key for S3 storage.
AWS_SECRET_ACCESS_KEY
Type: StringRequired for S3 AWS secret key for S3 storage.
AWS_DEFAULT_REGION
Type: StringDefault:
us-east-1
AWS region for S3 bucket.
AWS_BUCKET
Type: StringRequired for S3 S3 bucket name.
Redis Configuration
REDIS_CLIENT
Type: StringDefault:
phpredisOptions:
phpredis, predis
Redis client library.
REDIS_HOST
Type: StringDefault:
127.0.0.1
Redis server hostname.
REDIS_PASSWORD
Type: StringDefault:
null
Redis authentication password.
REDIS_PORT
Type: IntegerDefault:
6379
Redis server port.
Security Configuration
BCRYPT_ROUNDS
Type: IntegerDefault:
12Range: 4-31 Number of bcrypt hashing rounds. Higher is more secure but slower.
Memcached Configuration
MEMCACHED_HOST
Type: StringDefault:
127.0.0.1
Memcached server hostname.
MEMCACHED_PORT
Type: IntegerDefault:
11211
Memcached server port.
MEMCACHED_USERNAME
Type: StringDefault:
null
Memcached SASL username.
MEMCACHED_PASSWORD
Type: StringDefault:
null
Memcached SASL password.
Custom ElectroFix Configuration
ElectroFix AI may use additional environment variables for Stripe, AI providers (OpenAI, Anthropic), and other integrations. Check the application code for service-specific configuration.
Stripe Configuration (if applicable)
AI Provider Configuration (if applicable)
Configuration Files
Configuration files are located in theconfig/ directory:
config/app.php- Application settings (name, locale, timezone, providers)config/auth.php- Authentication guards and providersconfig/cache.php- Cache stores and driversconfig/database.php- Database connectionsconfig/filesystems.php- File storage disksconfig/mail.php- Mail configuration and mailersconfig/queue.php- Queue connections and failed jobsconfig/services.php- Third-party service credentialsconfig/session.php- Session driver and settings
Environment-Specific Examples
Local Development (SQLite)
Local Development (MySQL)
Production
Next Steps
- Local Development Setup - Set up development environment
- Production Deployment - Deploy to production
- Database Migrations - Database schema reference