fix create slug

This commit is contained in:
Билай Станислав 2024-10-01 12:25:07 +03:00
parent 571782368c
commit 160c381abc

View File

@ -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;
}