kirkbushell / eloquence

A drop-in library for certain database functionality in Laravel, that allows for extra features that may never make it into the main project.
MIT License
537 stars 58 forks source link

Unique slugs ? #50

Closed DarKDinDoN closed 8 years ago

DarKDinDoN commented 8 years ago

Hello,

Can this package generate unique slugs ?

Thx.

kirkbushell commented 8 years ago

It doesn't do checks on slugs, so there is a chance that it could create an erroneous slug. It depends also on the strategy you use. For example if you want to base it off a post title or something, you should be doing that check yourself, and ensuring you have a good strategy for managing it.

DarKDinDoN commented 8 years ago

Thx