पेज · Laravilt
Configuration
Plugin config files and fluent plugin options.
Config file
The generator creates config/{plugin-id}.php:
php
The generated service provider merges it and publishes it under the {plugin-id}-config tag:
php
php
Fluent options
Add chainable setters to the plugin class so each panel can configure it:
php
php
The plugins package config
config/laravilt-plugins.php controls discovery and generator defaults:
| Key | Description |
|---|---|
discovery.enabled | Auto-discover installed plugins (LARAVILT_PLUGINS_DISCOVERY_ENABLED) |
discovery.cache | Cache discovery (LARAVILT_PLUGINS_CACHE_ENABLED) |
paths | Paths to look for plugins (default vendor) |
defaults.* | Vendor, author, email, license and GitHub sponsor for new plugins |
features | Feature classes used by the generator; add your own |