visualight / spatie-translatable-cviebrock-eloquent-sluggable

Update Cviebrock/Eloquent-Sluggable to work with Spatie/Translatable
0 stars 0 forks source link

unique number is not increasing #1

Open greatsami opened 3 years ago

greatsami commented 3 years ago

Hi @visualight ,

I updated the files, and it is working. But I faced unique slugs count the first row only and not increment the number.

I insert (carrot) word three times, and it looks like: 1- carrot 2- carrot-1 3- carrot-1

and so on...

can you help me with this issue?

Regards,

visualight commented 3 years ago

Hi,

I gave up cviebrock-eloquent-sluggable. Take a look at this package: https://github.com/whitecube/laravel-sluggable

Source: https://github.com/spatie/laravel-translatable/issues/33