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

lara28580's avatar

cviebrock/eloquent-sluggable 9.0.0 requires illuminate/config ^9.0

I am trying to install the package composer require cviebrock/eloquent-sluggable. I always get

Problem 1
    - Root composer.json requires cviebrock/eloquent-sluggable ^9.0 -> satisfiable by cviebrock/eloquent-sluggable[9.0.0].
    - cviebrock/eloquent-sluggable 9.0.0 requires illuminate/config ^9.0 -> found illuminate/config[v9.0.0-beta.1, ..., 9.x-dev] but these were not loaded, likely because it conflicts with another require.

What needs to be done here?

0 likes
5 replies
tykus's avatar

What Laravel version are you actually running in the project?

1 like
tykus's avatar

@SmokeTM well there's your problem! Version 9.0 is intended for the upcoming Laravel 9 release. Instead, install a compatible version of the package for your project's Laravel version:

composer require cviebrock/eloquent-sluggable "^8.0"
1 like
lara28580's avatar

@tykus Now I get

[InvalidArgumentException]
  Package cviebrock/eloquent-sluggable at version 8.0 has requirements incompatible with your PHP version, PHP extensions and Composer version:
    - cviebrock/eloquent-sluggable 8.0.0 requires php ^7.3 which does not match your installed version 8.1.1.

If I downgrade now could there be a problem with the laravel version ? I mean dependecies

tykus's avatar
tykus
Best Answer
Level 104

@SmokeTM don't downgrade; the latest 8.x version of the package has ^8.0 PHP requirement:

composer require cviebrock/eloquent-sluggable "8.0.8"
6 likes

Please or to participate in this conversation.