Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Duplicate Slug #124

Closed
ipanardian opened this issue Nov 5, 2020 · 1 comment
Closed

Duplicate Slug #124

ipanardian opened this issue Nov 5, 2020 · 1 comment

Comments

@ipanardian
Copy link

Failed: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'one-month-free-trial-1826' for key 'plan_subscriptions_slug_unique'.

How to prevent this? because the slug is generated automatically

@Omranic
Copy link
Member

Omranic commented Mar 14, 2021

Thank you for your question and your patience.

This package uses spatie/sluggable, so you can check the usage guide in order to tweak the slugs logic. By default we don't allow duplicate slugs, but if you want to change that behavior you may need to publish and adjust your migrations, and the models as well.

Let me know if you need any further help.

@Omranic Omranic closed this as completed Mar 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants