Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User slugs are not unique #113

Open
akimcsm opened this issue Jan 24, 2019 · 2 comments
Open

User slugs are not unique #113

akimcsm opened this issue Jan 24, 2019 · 2 comments

Comments

@akimcsm
Copy link

akimcsm commented Jan 24, 2019

I know this issue was fixed for the Post model #76, but I recently ran into it while saving multiple users with the same name.

A temporary fix for people facing the same issue might be changing the column that is being used as a slug (e.g. in the boot() method from the User model, change $model->name to $model->email since email is always unique).

@shirshak55
Copy link
Contributor

yea they are not unique i ended up using eloquent sluggable.

@shirshak55
Copy link
Contributor

Yea I think you can use dedicated eloquent sluggable . We can also use the package but some package don't support localization some don't have feature etc.

I think we can close the issue right?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants