Laravel: красноречивый-Sluggable - PullRequest
0 голосов
/ 30 марта 2020

Здравствуйте, когда я хочу установить пакет eloquent-sluggable cviebrock, я запускаю следующую ошибку, пожалуйста, сообщите мне спасибо

Это мой текстовый терминал, когда он дает мне эту ошибку:

H:\website\xampp\htdocs\laravel2>composer require cviebrock/eloquent-sluggable
Using version ^7.0 for cviebrock/eloquent-sluggable
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for cviebrock/eloquent-sluggable ^7.0 -> satisfiable by cviebrock/eloquent-sluggable[7.0.0].
    - Conclusion: remove laravel/framework v6.18.3
    - Conclusion: don't install laravel/framework v6.18.3
    - cviebrock/eloquent-sluggable 7.0.0 requires illuminate/config ^7.0 -> satisfiable by laravel/framework[7.x-dev], illuminate/config[7.x-dev, v7.0.0
, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.2.0, v7.2.1, v7.2.2, v7.3.0].
    - Can only install one of: laravel/framework[7.x-dev, v6.18.3].
    - don't install illuminate/config 7.x-dev|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.0.0|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.0.1|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.0.2|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.0.3|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.0.4|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.0.5|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.0.6|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.0.7|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.0.8|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.1.0|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.1.1|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.1.2|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.1.3|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.2.0|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.2.1|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.2.2|don't install laravel/framework v6.18.3
    - don't install illuminate/config v7.3.0|don't install laravel/framework v6.18.3
    - Installation request for laravel/framework (locked at v6.18.3, required as ^6.2) -> satisfiable by laravel/framework[v6.18.3].


Installation failed, reverting ./composer.json to its original content.

Ответы [ 2 ]

0 голосов
/ 31 марта 2020

Laravel имеет класс по умолчанию для слизняка Str::slug($variable_or_plain_text, ‘the symbol you want to replaced by space’);

0 голосов
/ 31 марта 2020

Это проблема версии зависимости. Вы пытаетесь установить cviebrock/eloquent-sluggable ^7.0, для которого требуется laravel/framework ^7.0, но у вас есть laravel/framework 6.18.3. Подробнее здесь .

Попробуйте установить более низкую версию cviebrock/eloquent-sluggable (предпочтительно ^6.0), выполнив composer require cviebrock/eloquent-sluggable ^6.0.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...