Перейти к основному содержимому

Config и env reference

Config files

ФайлНазначение
config/app.phpБазовая Laravel app config
config/auth.phpGuards/providers/passwords
config/cache.phpCache stores, default database store
config/database.phpMySQL/sqlite/gktomk connections, local overrides
config/filament.phpFilament package config
config/filesystems.phpDisks/storage
config/fortify.phpFortify features/views/actions behavior
config/jetstream.phpJetstream features/profile/team behavior
config/livewire.phpLivewire config
config/logging.phpLog channels
config/mail.phpMail transport
config/permission.phpSpatie Permission config
config/permission-controller.phpAesis permission controller config
config/permission-model-attributes.phpAesis permission attributes config
config/permission-policy.phpAesis permission policy config
config/queue.phpQueue connections, default database queue
config/sanctum.phpSanctum config
config/services.phpThird-party service config
config/session.phpSession driver/lifetime/cookie
config/settings.phpSpatie Laravel Settings
config/systematika.phpProject-specific config

Project env variables

EnvConfigRequired forNotes
WEBSERVER_URLsystematika.webserver_urlLaravel page cache warmupДолжен вести на Laravel site
WP_URLsystematika.wp_urlWP hook/page cacheДолжен вести на старый WP/v1 source
WP_HOOK_KEYsystematika.wp_hook_key/api/page-cache/wp-hookНе оставлять default
API_KEYsystematika.api_keyinternal APIНе оставлять default
ADMIN_PANELsystematika.admin_panelFilament pathDefault dashboard
MUST_VERIFY_EMAILsystematika.must_verify_emailAuth/adminBoolean
REGISTRATION_ENABLEsystematika.registration_enableFilament registrationBoolean
UNAUTHORIZED_ROADMAP_URLsystematika.unauthorized_roadmap_urlRoadmap linksURL/path
MODERN_CATALOG_URLsystematika.modern_catalog_urlCatalog prefixDefault catalog
ROOT_HTACCESSsystematika.root_htaccessRouter commandsExternal .htaccess path
MK_API_KEYsystematika.mk_api_keyMK APISecret

Database env variables

EnvНазначение
DB_CONNECTIONLaravel default connection
DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORDMain DB
LOCAL_COMPUTERSwitch local DB host/port behavior
DB_LOCAL_HOST, DB_LOCAL_PORTLocal main DB override
DB_GKTOMK_HOST, DB_GKTOMK_PORT, DB_GKTOMK_DATABASE, DB_GKTOMK_USERNAME, DB_GKTOMK_PASSWORDgktomk connection
DB_GKTOMK_LOCAL_HOST, DB_GKTOMK_LOCAL_PORTLocal gktomk override expected by code

Known issue: .env.example may contain DB_GKTOML_LOCAL_* typo. Code expects DB_GKTOMK_LOCAL_*.

Runtime env variables

EnvRecommendedПочему
CACHE_STOREdatabaseProject defaults expect DB cache
QUEUE_CONNECTIONdatabaseJobs table используется для page cache
SESSION_DRIVERdatabaseSessions in DB
APP_DEBUGfalse in productionSecurity
APP_ENVproduction in productionRuntime behavior

Services config drift

Code references:

  • services.loginus.* in debug Loginus callback;
  • services.morpher.* in MorpherServiceProvider.

If these integrations are used, ensure config/services.php and env contain required keys.