webkernel/config

Webkernel Config Documentation

On this page

Welcome to the Webkernel Config package documentation. Webkernel Config is a compiled configuration package with automatic change detection.

Documentation Index


Quick Reference

use Webkernel\Config\Config;

// Get a configuration value
$name = config('app.app.name');

// Get with fallback
$timeout = config('database.timeout', 30);

// Set and persist runtime configuration
Config::set('app.maintenance', false);

// Protect key tree against runtime mutation
Config::protect(['platform', 'app.secret']);

// Inspect publishable package assets
$publishables = Config::publishables('courier-config');