I am hosting a laravel project, and composer is requiring php version that is greater then 8.1. Php version in use is 7.4.8. How can i fix this? Is there a simple way to change the composer php requirement to 7.4.8 which is in use here? I tried editting the composer.json line:
"require": {
"php": "^8.0.2",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^9.19",
"laravel/sanctum": "^3.0",
"laravel/tinker": "^2.7"
},
to
"require": {
"php": "^7.4.8|^8.0.2",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^9.19",
"laravel/sanctum": "^3.0",
"laravel/tinker": "^2.7"
},
, and then running composer update command before uploading the project again. Still the same problem.