laravel-lang/config
Laravel Lang: Config provides configuration resources for the Laravel Lang ecosystem. Install via Composer to keep your app aligned with Laravel Lang defaults and updates, with MIT licensing and community support available.
config() helper and service container, requiring minimal architectural disruption. Leverages Laravel’s built-in caching (config:clear) and service provider patterns.es_MX → es → en), reducing duplication and simplifying maintenance for multilingual apps.laravel-lang/translator) and Spatie’s laravel-data (used internally for DTOs), enabling a cohesive localization stack.vendor:publish).LaravelLangConfigServiceProvider).config/locales/en/app.php).VENDOR_PATH environment variable).config:clear after updates, which may introduce deployment friction. Mitigation: Automate with Git hooks or CI/CD scripts.config('services.stripe.key') is non-empty). Workaround: Pair with reverb or custom validation.config/locales/, which may conflict with existing directory structures. Mitigation: Customize publish paths via service provider.Accept-Language)? The package relies on Laravel’s App::currentLocale() or custom logic.config:clear performance.config:clear compatible with your CI/CD pipeline (e.g., Docker, serverless)?laravel-config-array) or external services (e.g., LaunchDarkly) for dynamic use cases?config() helper).config:clear).trans('messages.welcome')).ParameterBag or yaml configs.config/ directory) to identify locale-aware candidates (e.g., services.stripe.endpoint, legal.terms).es_MX → es → en) and document in README.md.composer require laravel-lang/config
php artisan vendor:publish --provider="LaravelLangConfigServiceProvider" --tag="config"
config/app.php:
'providers' => [
LaravelLangConfigServiceProvider::class,
],
app.php, services.php) to locale-aware files:
config/
├── locales/
│ ├── en/
│ │ ├── app.php
│ │ └── services.php
│ └── es/
│ ├── app.php
│ └── services.php
└── app.php (default fallbacks)
config('app.locale_aware_setting').App::setLocale()).Config::shouldReceive('get').php artisan config:clear to deployment scripts (or automate with Git hooks).// config/app.php (default)
'timezone' => 'UTC',
// config/locales/es/app.php (override)
'timezone' => 'America/Mexico_City',
package_name.*).laravel-lang/translator if using language-specific translations.config('locales.es.app.timezone')).config:clear needed after updates. Mitigation:
git commit -m "Update Spanish configs" && php artisan config:clear
config/locales/{locale}/{file}.php) and use Git submodules for shared configs.#!/bin/bash
mkdir -p config/locales/$LOCALE
cp -r config/locales/en/* config/locales/$LOCALE/
How can I help you explore Laravel packages today?