dragon-code/translation-set
dragon-code/translation-set offers a structured way to define and manage translation sets in Laravel applications, helping you organize language strings into reusable groups and keep localization files consistent, maintainable, and easy to work with.
^1.2.0 on Laravel 11 projects. This is the first line with explicit Laravel 11 support and the initialization fix from #328; earlier versions may boot inconsistently under Laravel 11’s streamlined provider/bootstrap flow.composer require vendor/package:^1.2.0
php artisan package:discover --ansi
php artisan vendor:publish --provider="Vendor\Package\PackageServiceProvider" --tag=config
Check the published file in config/; keep environment-specific values in .env where the package supports it.php artisan migrate
php artisan tinker
>>> app(Vendor\Package\Client::class);
vendor/vendor/package/src/ServiceProvider.php, the package config file, and the upgrade notes for 1.2.0. Run php artisan about to confirm Laravel version, cache state, and environment before debugging behavior.app/Http/Kernel.php. If the package documents middleware or console-kernel snippets from older Laravel versions, translate them into bootstrap/app.php or the package’s own auto-registration.config/package.php for defaults and .env for deployment-specific values; avoid editing vendor files.bootstrap/app.php:
->withMiddleware(function (Middleware $middleware) {
$middleware->append(\Vendor\Package\Middleware\PackageMiddleware::class);
})
Prefer package-provided registration when available; only add manual wiring when the package documents it.$this->swap(Contract::class, $fake);
If migrations are involved, combine with RefreshDatabase. Confirm tests run with cached config disabled, or rebuild caches in CI.$this->app->bind(
\Vendor\Package\Contracts\Client::class,
\App\Services\CustomClient::class
);
This is safer than modifying package internals and works with Laravel 11’s provider discovery.composer install --no-dev, then php artisan optimize or explicit config:cache / route:cache steps. Verify the package behaves correctly with cached config before promoting to production.>=1.2.0 and clear stale bootstrap caches after upgrading:
php artisan optimize:clear
composer dump-autoload
php artisan package:discover
Confirm extra.laravel.providers exists in the package’s composer.json and that bootstrap/cache/packages.php was regenerated.register() method before the package provider has run. Defer to boot() or use $this->app->booted(...) when integrating with application code.config/package.php is overriding a newer default from the package.app/Console/Kernel.php, adapt scheduling to routes/console.php and middleware to bootstrap/app.php..env in a deployed environment, run php artisan config:clear or rebuild caches as part of release.php artisan about
php artisan config:show package
php artisan tinker
Then inspect storage/logs/laravel.log for provider or binding failures.composer.json before using the same version across mixed-version applications.How can I help you explore Laravel packages today?