页面 · Laravilt
Configuration
The panel provider, published config files and environment keys.
Most configuration lives in PHP, on the panel. Config files hold package-wide defaults.
The panel provider
The installer generates app/Providers/Laravilt/AdminPanelProvider.php:
php
discoverAutomatically() registers everything under app/Laravilt/Admin/{Resources,Pages,Widgets}. Common additions:
php
See Panel, Branding and Creating Panels. Add another panel with php artisan laravilt:panel.
Environment
| Key | Purpose |
|---|---|
LARAVILT_FRONTEND | vue or react. Written by the installer, and read by generators and publish tags. When empty, it's detected from package.json. |
APP_URL | Must match the URL you browse (asset and passkey origins). |
SESSION_DRIVER, QUEUE_CONNECTION | database works well for admin panels. |
AI providers and social login read their own keys (for example OPENAI_API_KEY). See AI Providers and Social Login.
Config files
The installer publishes each package's config. To re-publish one, pass --force to overwrite:
bash
| Tag | Package |
|---|---|
laravilt-panel-config | Panel defaults |
laravilt-tenancy-config | Multi-tenancy |
laravilt-auth-config | Authentication |
laravilt-forms-config, laravilt-tables-config | Form and table defaults |
laravilt-ai-config | AI providers |