diff --git a/kernel/helpers/Slug.php b/kernel/helpers/Slug.php index ecd3432..423e37e 100644 --- a/kernel/helpers/Slug.php +++ b/kernel/helpers/Slug.php @@ -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; }