cocur / slugify

Converts a string to a slug. Includes integrations for Symfony, Silex, Laravel, Zend Framework 2, Twig, Nette and Latte.
MIT License
2.86k stars 249 forks source link

Laravel 9 Support #308

Open nabeeljavaid opened 2 years ago

nabeeljavaid commented 2 years ago

Please add Laravel9 support in the package

bastiaandewaele commented 1 year ago

I am having the same problem here, because another package called cviebrock/eloquent-sluggable uses this one as a dependency :)

When I try updating Laravel 8 to 9 by using composer, I am seeing this error.

 Problem 1
    - laravel/framework[v9.0.0-beta.1, ..., 9.x-dev] require egulias/email-validator ^3.1 -> found egulias/email-validator[3.1.0, ..., 3.x-dev] but the package is fixed to 2.1.25 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires laravel/framework ^9.0 -> satisfiable by laravel/framework[v9.0.0-beta.1, ..., 9.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

This is because your lock file is stuck at 2.1.25 (egulias/email-validator) and should become ^3.1.

https://github.com/cocur/slugify/blob/c8c58a29734a264a32a3429f76ce26e4eb91e4d7/composer.lock#L383-L390

florianeckerstorfer commented 1 year ago

I'm happy to merge a Pull Request that addresses this

bastiaandewaele commented 1 year ago

Ok, great! I will try making the PR next week :)