fix create slug
This commit is contained in:
parent
571782368c
commit
160c381abc
@ -131,7 +131,7 @@ class Slug
|
||||
if ($tmpSlug === '') $tmpSlug = $slug;
|
||||
if ($model::where(['slug' => $tmpSlug])->exists()) {
|
||||
$tmpSlug = $slug . '-' . $id++;
|
||||
$tmpSlug = Slug::recursiveCreateSlug($model, $slug, $id);
|
||||
$tmpSlug = Slug::recursiveCreateSlug($model, $slug, $tmpSlug, $id);
|
||||
}
|
||||
return $tmpSlug;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user