I have installed laravel 5.5.45 using composer. Composer version is 1.18.4 and PHP version is 7.0.3. development and production server are in the same configuration.
I tried to install dompdf package. But I am getting following message
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run ".\vendor\bin\upgrade-carbon" to get help in updating carbon and other frameworks and libraries that depend on it.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
Discovered Package: arcanedev/log-viewer
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Discovered Package: laravelcollective/html
Discovered Package: maatwebsite/excel
Discovered Package: nesbot/carbon
Package manifest generated successfully.
I tried with following changes.
"require": {
"nesbot/carbon": "2.24.0 as 1.39.0"
"kylekatarnls/laravel-carbon-2": "^1.0.0"
}
It produces following error
Problem 1
- Installation request for nesbot/carbon 2.24.0 as 1.39.0 -> satisfiable by nesbot/carbon[2.24.0].
- nesbot/carbon 2.24.0 requires php ^7.1.8 || ^8.0 -> your PHP version (7.0.30) does not satisfy that requirement.
Problem 2
- Installation request for nesbot/carbon (locked at 1.39.0, required as 2.24.0 as 1.39.0) -> satisfiable by nesbot/carbon[1.39.0].
- nesbot/carbon 1.39.0 requires php ^7.1.8 || ^8.0 -> your PHP version (7.0.30) does not satisfy that requirement.
Problem 3
- nesbot/carbon 2.24.0 requires php ^7.1.8 || ^8.0 -> your PHP version (7.0.30) does not satisfy that requirement.
- kylekatarnls/laravel-carbon-2 1.0.0 requires nesbot/carbon ^2.0.0-beta.2 -> satisfiable by nesbot/carbon[2.24.0].
- Installation request for kylekatarnls/laravel-carbon-2 ^1.0.0 -> satisfiable by kylekatarnls/laravel-carbon-2[1.0.0].
i cant upgrade the php version in production and development server. So please help me to solve this without updating PHP version
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/302Xs7i
via IFTTT
Aucun commentaire:
Enregistrer un commentaire