.env file for core configuration settings. This file is located in the root of your Panel installation.
Initial Setup
During installation, copy the example environment file:Core Application Settings
Application Environment
.env
Application environment. Use
production for live deployments, local for development.Enable debug mode. Shows detailed error messages with stack traces.
Application Identity
.env
Application name used in emails and UI elements.
The full URL where your Panel is accessible. Used for generating URLs in emails and console commands.Example:
https://panel.example.comDefault language locale for the application.
Default timezone for the application. See PHP timezones.
Encryption Key
.env
Application encryption key. Generated during installation with
php artisan key:generate.Theme Configuration
.env
Active theme name. Custom themes should be placed in
resources/themes/.Security Settings
HashIDs Configuration
HashIDs are used to obfuscate internal database IDs in public-facing URLs..env
Random salt for HashID generation. Should be a long, random string.
Minimum length of generated hash IDs.
Environment Restrictions
.env
When enabled, only environment variables are used for configuration. Recommended for security.
Logging Configuration
.env
Logging channel to use. Options:
daily- Separate log file per daysingle- Single log filestack- Multiple channels
Minimum log level. Options:
debug, info, notice, warning, error, critical, alert, emergencyGenerating the Application Key
After creating your.env file, generate an encryption key:
--force flag is required in production environments.
Next Steps
Email Configuration
Configure SMTP and email settings
Database Setup
Configure MySQL/MariaDB connection
Cache & Queues
Set up Redis, caching, and queue workers
Security Settings
Configure SSL, trusted proxies, and sessions
