Skip to content Skip to footer navigation
You are reading the docs for an old version of Statamic. Consider upgrading to Statamic 6.

config

Statamic (and Laravel) have many config files in the config directory. Each file/directory is the 'key' to retrieve its data.

For example, if you want to check whether the Control Panel is enabled, you could use:

{{ config:statamic:cp:enabled }}
{{ config('statamic.cp.enabled') }}

To retrieve from the config/app.php you would:

{{ config:app:variable_you_want }}
{{ config('statamic.app.variable_you_want') }}