spatie / laravel-enum

Laravel support for spatie/enum
https://spatie.be/open-source
MIT License
344 stars 37 forks source link

Compatibility issue with Laravel 10 #98

Closed fh32000 closed 1 year ago

fh32000 commented 1 year ago

I'm trying to use spatie/laravel-enum in my Laravel 10 project, but I'm encountering an error related to compatibility. I believe there is a conflict between the requirements of spatie/laravel-enum and Laravel 10. Can you please help me resolve this issue?

{
    "require": {
        "php": "^8.1",
        "laravel/framework": "^10.0",
        "illuminate/support": "^9.0",
        "spatie/laravel-enum": "^3.0"
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - illuminate/support[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (8.1.13) does not satisfy that requirement.
    - Root composer.json requires laravel/framework ^10.0 -> satisfiable by laravel/framework[10.x-dev].
    - spatie/laravel-enum[3.0.0, ..., 3.0.1] require illuminate/support ^8.0 || ^9.0 -> satisfiable by illuminate/support[v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev].
    - Only one of these can be installed: illuminate/support[v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev], laravel/framework[10.x-dev]. laravel/framework replaces illuminate/support and thus cannot coexist with it.
    - Root composer.json requires spatie/laravel-enum ^3.0 -> satisfiable by spatie/laravel-enum[3.0.0, 3.0.1].
rubenvanassche commented 1 year ago

This has been fixed with the latest release.

fh32000 commented 1 year ago

will done thinks