laravel-google-translate
laravel-google-translate copied to clipboard
Laravel 10 problem
Problem 1 - google/cloud-translate[v1.9.0, ..., v1.13.3] require google/cloud-core ^1.39 -> satisfiable by google/cloud-core[v1.39.0, ..., v1.51.2]. - google/cloud-translate[v1.7.4, ..., v1.8.1] require google/cloud-core ^1.35 -> satisfiable by google/cloud-core[v1.35.0, ..., v1.51.2]. - tanmuhittin/laravel-google-translate 2.1.0 requires illuminate/support ^5.5|^6|^7|^8|^9 -> found illuminate/support[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.7] but these were not loaded, likely because it conflicts with another require. - google/cloud-core[v1.35.0, ..., v1.37.1] require guzzlehttp/guzzle ^5.3|^6.0 -> found guzzlehttp/guzzle[5.3.0, ..., 5.3.4, 6.0.0, ..., 6.5.8] but it conflicts with your root composer.json require (^7.2). - google/cloud-core[v1.38.0, ..., v1.51.2] require guzzlehttp/promises ^1.3 -> found guzzlehttp/promises[1.3.0, ..., 1.5.3] but the package is fixed to 2.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - tanmuhittin/laravel-google-translate 2.2.0 requires google/cloud-translate ^1.7.4 -> satisfiable by google/cloud-translate[v1.7.4, ..., v1.13.3]. - Root composer.json requires tanmuhittin/laravel-google-translate ^2.1 -> satisfiable by tanmuhittin/laravel-google-translate[2.1.0, 2.2.0].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can fork the repository or using an existing fork.
Add to your composer.json
"repositories": [
{
"canonical": false,
"type": "vcs",
"url": "https://github.com/siberfx/laravel-google-translate"
}
]
After that, add to require section the next:
"tanmuhittin/laravel-google-translate": "dev-master"
composer.json should look like this:
"require": {
"php": "^8.1",
"guzzlehttp/guzzle": "^7.2",
"jantinnerezo/livewire-alert": "^2.2",
"laravel/framework": "^10.10",
"tanmuhittin/laravel-google-translate": "dev-master"
},
"repositories": [
{
"canonical": false,
"type": "vcs",
"url": "https://github.com/siberfx/laravel-google-translate"
}
]
Finally, just run composer update
@carlosvaldesweb would you like to update it to laravel 11 as well?