chinleung / laravel-multilingual-routes

A package to handle multilingual routes in your Laravel application.
https://github.com/chinleung/laravel-multilingual-routes-demo
MIT License
395 stars 25 forks source link

Dependency clash with Laravel 11 #82

Closed da40 closed 6 months ago

da40 commented 6 months ago

Describe the bug

A clear and concise description of what the bug is.

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires chinleung/laravel-multilingual-routes ^4.1 -> satisfiable by chinleung/laravel-multilingual-routes[v4.1.0, v4.1.1].

    - Conclusion: don't install laravel/framework v11.0.2 (conflict analysis result)
    - chinleung/laravel-multilingual-routes[v4.1.0, ..., v4.1.1] require chinleung/laravel-locales ^2.0 -> satisfiable by chinleung/laravel-locales[v2.0.0, v2.0.1].
    - chinleung/laravel-locales v2.0.1 requires illuminate/support ^9.0|^10.0 -> satisfiable by illuminate/support[v9.0.0, ..., v9.52.16, v10.0.0, ..., v10.48.4].
    - chinleung/laravel-locales v2.0.0 requires illuminate/support ^9.0 -> satisfiable by illuminate/support[v9.0.0, ..., v9.52.16].
    - Only one of these can be installed: illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.18.0, ..., v9.52.16, v10.0.0, ..., v10.48.4, v11.0.0, ..., v11.2.0], laravel/framework[v11.0.0, ..., v11.2.0]. laravel/framework replaces illuminate/support and thus cannot coexist with it.

Steps to reproduce the behavior:

  1. Update composer.json ro require Laravel 11.
  2. composer update

Expected behavior

Dependencies to be updated.

Result of route:list:

Not applicable.

Additional context

Not applicable.

da40 commented 6 months ago

I can confirm that the pull request for chinleung/laravel-locales by fyrts resolves this, although supported PHP versions should probably also be changed.

chinleung/laravel-locales/composer.json:

18  "require": {
        "php": "^8.0|^8.1|^8.2",
        "illuminate/support": "^9.0|^10.0|^11.0"
    },