You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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 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 theUser
model, change$model->name
to$model->email
since email is always unique).The text was updated successfully, but these errors were encountered: