mnabialek/laravel-version
Laravel Version lets you display your app's version number from composer.json, config, or a custom file, with helpers, Blade directives, and caching so you can show it in views, APIs, or health checks.
^1.0.9 (not ^1.0) if your app is on Laravel 12. Older patch releases will resolve against Laravel 11 and can produce confusing dependency-solver errors.composer.json for illuminate/* and php constraints; Laravel 12 support typically implies PHP 8.2+. Run composer why-not laravel/framework 12.* if resolution stalls.composer require, run php artisan package:discover (or clear the cached manifest) and verify the service provider is registered. Only publish config/migrations if the package ships them: php artisan vendor:publish --provider="Vendor\\Package\\PackageServiceProvider".config('package.key') rather than hard-coding, so environment overrides work in staging and production.^1.0.9. Keep the framework upgrade and any application feature work in separate PRs so a regression is attributable.^11.0 and ^12.0) with the same package version. This is the cheapest way to catch a compatibility regression the maintainer missed.orchestra/testbench for any package-level tests, and in the host app assert against the package's public behaviour (events dispatched, records written) rather than internal classes.illuminate/* constraints, which can pull newer Symfony components. Diff composer.lock after upgrading and review it, not just the package's own diff.bootstrap/cache/packages.php and config.php are the most common cause of "provider not found" after an upgrade. Run php artisan optimize:clear when in doubt.config/app.php (common in upgraded legacy apps), adding it to the discovery list can double-register it. Pick one mechanism.--tag=package-config style publishing where available, and re-publish deliberately after upgrades — overwriting a customized config file silently loses your changes.php artisan tinker and app()->getProvider(...), and check storage/logs/laravel.log for binding errors before assuming an application bug.How can I help you explore Laravel packages today?