Don't work website on laravel

Error Message

Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.1.0”.

I’m user laravel 8 and it works with php under 8.1.0 version. Why i have this error?

Other Information

My composer.json:

    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "require": {
        "php": "^7.3|^8.0",
        "amrshawky/laravel-currency": "^5.0",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "laravel/framework": "^8.75",
        "laravel/jetstream": "^2.9",
        "laravel/sanctum": "^2.11",
        "laravel/tinker": "^2.5",
        "livewire/livewire": "^2.5"
    "require-dev": {
        "facade/ignition": "^2.5",
        "fakerphp/faker": "^1.9.1",
        "laravel/sail": "^1.0.1",
        "mockery/mockery": "^1.4.4",
        "nunomaduro/collision": "^5.10",
        "phpunit/phpunit": "^9.5.10"
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/"
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
    "scripts": {
        "post-autoload-dump": [
            "@php artisan package:discover --ansi"
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force"
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
    "extra": {
        "laravel": {
            "dont-discover": []
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    "minimum-stability": "dev",
    "prefer-stable": true

Please read this thread


Simple: we don’t have PHP 8.1, we have PHP 7.4.

Laravel 8 can work with PHP 7.4, so not all is lost. To fix this, you will need to install PHP 7.4 locally, and then re-run composer update. This will likely downgrade some dependencies to install versions that are compatible with PHP 7.4. You can then upload the generated vendor folder to our hosting.


Where i can write on hosting composer update?

You can’t run composer update, or any other commands, on our hosting.

Like I said:


  1. Install PHP 7.4 locally.
  2. Run composer update locally.
  3. Upload the vendor folder to your hosting account.

Okay, but where in hosting is command promt, where i can write “composer update”? I can’t find it

Nowhere in hosting.

You’ll need to install PHP 7.4 and run the command locally, on your own computer, as told by Admin. Command Prompt is the name in Windows, if you’re on a Mac or Linux you’re probably looking for the Terminal.


ok, thanks

1 Like

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