joggapp/laravel-google-translate
Laravel Google Translate provides a simple wrapper around Google Cloud Translation for translating text and detecting languages in PHP apps. Configure credentials and locale, then use the facade or helper to translate strings, batch text, and integrate multilingual content quickly.
fix method name). That is not enough to plan an upgrade, so the first stop is CHANGELOG.md / UPGRADE.md, then git diff <v8-tag>..v9.0.0 (or the release's compare view) to see the actual rename. Grep your codebase for the old name before anything else — a renamed public method is a fatal error at call time, not a silent one.composer require vendor/package:^9.0. Avoid * or dev-main; a one-line note on a major bump is a signal the maintainer under-documents releases, so pinning is your safety net.php artisan vendor:publish --provider="Vendor\Package\PackageServiceProvider" (or --tag=package-config). Check the published file against the v9 defaults — majors frequently rename or restructure config keys alongside method renames.it('works against the v9 API', function () {
$result = app(PackageContract::class)->newMethodName($input);
expect($result)->toBe(/* ... */);
});
tests/ directory. When the changelog is thin, its test suite is the authoritative record of how the current method signatures are actually called.app()-resolve the package's contract; bind it in a service provider. This is what makes the package fakeable in tests and swappable if the rename turns into a deprecation shim you'd rather bypass.news the class will happily pass while the app fails.larastan/phpstan at a high level against the upgraded branch. Call to an undefined method is exactly the error a rename produces, and it surfaces without executing the code path.composer why-not vendor/package ^9.0 tells you which of your other dependencies are still pinning the old major. Do this before promising a fleet-wide upgrade.illuminate/* floor raise rather than by the rename at all.php artisan optimize:clear, and restart PHP-FPM/opcache. A stale facade signature or cached config will make you chase an error that no longer exists in vendor/.trigger_error(..., E_USER_DEPRECATED) or a docblock @deprecated, you have been handed a free warning — fix it now, not in v10.barryvdh/laravel-ide-helper and similar tools cache facade signatures; after a rename your editor will autocomplete the dead method and flag the live one. Regenerate before you conclude the package is broken.composer update output reveals. Check the parent class in src/ directly.How can I help you explore Laravel packages today?