Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

restest's avatar

Updating to Laravel 10 with an old Laravel Spark Version

Hello there,

I just tried to update to laravel 10 for one of my side projects. The Project uses Laravel Spark ~2.4 which is not the newest Version but I bought it I think in 2020 and the project back then did not work out. (suprise) It does it's job and currently 99 or 200+ $ are not available because its just a small project.

While trying to update from laravel 9 to 10 composer tells me spark and l10 illuminate/contracts are not compatibel.

Are there any possibilities I can install both versions of illuminate/contracts? Or is my only possibility renewing the laravel spark licence? Thanks in advance!

Root composer.json requires laravel/framework ^10.0.0 -> satisfiable by laravel/framework[v10.0.0].
- laravel/spark-stripe v2.6.0 requires illuminate/contracts ^9.0 -> satisfiable by illuminate/contracts[v9.0.0, ..., v9.52.0].
- Only one of these can be installed: illuminate/contracts[v6.0.0, ..., v6.2, 0.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.0, v10.0.0], laravel/framework[v10.0.0]. laravel/framework replaces illuminate/contracts and thus cannot coexist with it.
- Root composer.json requires laravel/spark-stripe 2.6 -> satisfiable by laravel/spark-stripe[v2.6.0].
0 likes
5 replies
restest's avatar

Hey @Sinnbeck , thanks for your answer! Here is the composer.json:

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^8.1",
        "bacon/bacon-qr-code": "^2.0",
        "guzzlehttp/guzzle": "^7.2",
        "inertiajs/inertia-laravel": "^0.6.3",
        "laravel/framework": "^10.0.0",
        "laravel/jetstream": "^2.12",
        "laravel/sanctum": "^3.0",
        "laravel/tinker": "^2.7",
        "league/flysystem-aws-s3-v3": "3.0",
        "spatie/browsershot": "^3.57",
        "spatie/laravel-medialibrary": "^10.6.1",
        "tightenco/ziggy": "^1.0",
        "laravel/spark-stripe": "2.4"
    },
    "require-dev": {
        "fakerphp/faker": "^1.9.1",
        "laravel/pint": "^1.2",
        "laravel/sail": "^1.0.1",
        "mockery/mockery": "^1.4.4",
        "nunomaduro/collision": "^7.0",
        "phpunit/phpunit": "^10.0",
        "spatie/laravel-ignition": "^2.0"
    },
    "autoload": {
        "psr-4": {
            "App\": "app/",
            "Database\Factories\": "database/factories/",
            "Database\Seeders\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@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,
        "allow-plugins": {
            "pestphp/pest-plugin": true
        }
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "repositories": [
        {
            "type": "composer",
            "url": "https://spark.laravel.com"
        }
    ]
}
Sinnbeck's avatar

@restest hm. Don't own a license so I can't test it. Maybe reach out to support and ask what version you need to set it to

restest's avatar
restest
OP
Best Answer
Level 1

It works with an alias.

"laravel/framework": "10.0.0 as 9.52.0",

Maybe not a long term solution but it works until we create our own "spark" pages.

1 like

Please or to participate in this conversation.