Laravel: Composer requiring > 8.1 php version, free hosting

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.

Read this thread

8 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.