Environment configuration
LaraCMS uses a.env file to store environment-specific configuration. This file is created from .env.example during installation and should never be committed to version control.
Application settings
Basic configuration
These are the fundamental settings for your LaraCMS installation:.env
The name of your application, displayed in emails and the admin interface
The environment your application is running in:
local, staging, or productionApplication encryption key. Generate with
php artisan key:generateEnable detailed error messages. Set to
false in productionThe base URL of your application. Used for generating links and sitemaps
Localization
.env
Default language for your application
Fallback language when translations are missing
Locale for generating fake data in development and testing
Database configuration
LaraCMS supports multiple database systems. Choose the one that best fits your needs.- SQLite
- MySQL
- PostgreSQL
- SQL Server
SQLite is the default database, perfect for development and small deployments:
.env
When using SQLite, other database variables (HOST, PORT, etc.) are ignored. Just ensure the
database/database.sqlite file exists.Session and cache
Session configuration
.env
Where sessions are stored:
file, cookie, database, memcached, redisSession lifetime in minutes
Cache configuration
.env
Cache driver:
file, database, memcached, redisQueue driver for background jobs:
sync, database, redis, sqsMail configuration
Configure email sending for user notifications and password resets:.env
Mail driver:
smtp, sendmail, mailgun, ses, postmark, logThe
log driver is useful for development - emails are written to storage/logs/laravel.log instead of being sent.- SMTP
- Mailgun
- Amazon SES
For standard SMTP servers:
.env
Media library
Configure media storage and processing:.env
Default filesystem disk:
local, public, s3Disk for media library files (uses Spatie Media Library)
config/media-library.php:
config/media-library.php
Amazon S3 storage
For cloud storage using Amazon S3:.env
Security services
Laravel Nightwatch
Nightwatch provides application monitoring and error tracking:.env
Your Nightwatch API token for application monitoring
Get your Nightwatch token from nightwatch.io after creating an account.
Cloudflare Turnstile
Turnstile provides bot protection for forms:.env
Public site key from Cloudflare Turnstile dashboard
Secret key from Cloudflare Turnstile dashboard
Cookie consent
.env
Your Cookiebot domain group ID for GDPR cookie consent
Performance optimization
PHP configuration
.env
Number of worker processes for PHP’s built-in server
Password hashing complexity. Higher is more secure but slower
Logging
.env
Minimum log level:
debug, info, notice, warning, error, criticalQueue workers
The queue system processes background jobs for media conversions and email sending:.env
Vite configuration
Frontend asset building is configured invite.config.js:
vite.config.js
.env
Next steps
First steps
Create your admin account and configure initial settings
Admin panel
Explore the admin dashboard and features