Cmd/Ctrl + K

Environment variables

The skeleton reads environment values from .env and the process environment. Use .env.example as the local template and keep real production values in the deployment environment.

Application

These variables define the application identity, environment, and debug behavior.

VariableDefaultPurpose
APP_ENVlocalApplication environment name.
APP_DEBUGtrueEnables debug output. Set false in production.

Logging

Logging variables select the default channel and minimum recorded level.

VariableDefaultPurpose
LOG_CHANNELfileDefault log channel.
LOG_FILEemptyOptional log file override.

Database

Database variables configure the default connection used by the application.

VariableDefaultPurpose
DB_CONNECTIONmysqlDefault connection name.
DB_HOST127.0.0.1MySQL host.
DB_PORT3306MySQL port.
DB_DATABASEannabelDatabase name or SQLite path.
DB_USERNAMErootDatabase username.
DB_PASSWORDemptyDatabase password.

Cache and Redis

These variables configure cache storage and the Redis connection shared by Redis-backed services.

VariableDefaultPurpose
CACHE_STOREfileDefault cache store.
CACHE_PATHemptyFile cache path override.
CACHE_PREFIXcache:Cache key prefix.
REDIS_HOST127.0.0.1Redis host.
REDIS_PORT6379Redis port.
REDIS_PASSWORDemptyRedis password.
REDIS_CACHE_DB0Redis database for cache.
REDIS_QUEUE_DB0Redis database for queues.
REDIS_TIMEOUT2.0Redis timeout.

Sessions

Session variables control the storage driver, cookie behavior, and session lifetime.

VariableDefaultPurpose
SESSION_DRIVERfileSession driver.
SESSION_PATHemptyFile session path override.
SESSION_COOKIE_SECUREfalseSend session cookies over HTTPS only.
SESSION_COOKIE_SAME_SITELaxSameSite cookie attribute.
SESSION_COOKIE_LIFETIME86400Cookie lifetime in seconds.
SESSION_ENCRYPTION_KEYemptyEnables encrypted session payloads.
SESSION_PREVIOUS_ENCRYPTION_KEYemptyPrevious key for rotation.
SESSION_ALLOW_PLAINTEXTtrueRead old plaintext sessions.
SESSION_REDIS_HOST127.0.0.1Redis session host.
SESSION_REDIS_PORT6379Redis session port.
SESSION_REDIS_DATABASE0Redis session database.
SESSION_REDIS_PREFIXannabel_session:Redis session key prefix.
SESSION_REDIS_TTL86400Redis session TTL.

Queue

Queue variables select the backend and worker defaults.

VariableDefaultPurpose
QUEUE_CONNECTIONsyncDefault queue connection.
QUEUE_REDIS_PREFIXqueue:Redis queue key prefix.
QUEUE_TABLEjobsDatabase queue table.
QUEUE_FAILED_TABLEfailed_jobsFailed jobs table.
QUEUE_RETRY_AFTER60Seconds before reserved jobs are retried.
QUEUE_MAX_ATTEMPTS3Maximum attempts before failure.
QUEUE_BACKOFF0Seconds to wait before retry.
QUEUE_TIMEOUT0Worker timeout.

Mail

Mail variables configure the default transport and sender identity.

VariableDefaultPurpose
MAIL_MAILERlogDefault mailer.
MAILER_DSNsmtp://localhost:25SMTP DSN.
MAIL_FROM_ADDRESShello@example.comDefault sender address.
MAIL_FROM_NAMEAnnabelDefault sender name.
MAIL_SENDMAIL_COMMAND/usr/sbin/sendmail -t -iSendmail command.

HTTP client

HTTP client variables define request defaults such as timeouts and redirects.

VariableDefaultPurpose
HTTP_CLIENT_BASE_URLemptyOptional default base URL.
HTTP_CLIENT_TIMEOUT30Request timeout.

Security

Security variables provide application secrets and security-related defaults.

VariableDefaultPurpose
SECURITY_CSRF_ENABLEDtrueEnables CSRF verification.
SECURITY_CSRF_ADD_TO_KERNELtrueAdds CSRF middleware globally.
SECURITY_CSRF_VERIFY_JSONfalseVerifies JSON requests.
SECURITY_CSRF_INPUT_KEY_tokenCSRF form input key.
SECURITY_THROTTLE_ENABLEDtrueEnables throttling.
SECURITY_THROTTLE_ADD_TO_KERNELtrueAdd global throttling.
SECURITY_THROTTLE_MAX_ATTEMPTS60Default max attempts.
SECURITY_THROTTLE_DECAY_SECONDS60Default decay window.
SECURITY_THROTTLE_STORAGEsessionThrottle storage driver.
SECURITY_THROTTLE_TABLEthrottle_requestsDatabase throttle table.
SECURITY_THROTTLE_PREFIXthrottle:Throttle key prefix.
SECURITY_TRUSTED_PROXIESemptyComma-separated trusted proxy IPs.