Hi
To fix this issue, please go to /root/source/app/helpers.php
search for the code
function unique_slug($title = '', $model = 'Ad'){
$slug = str_slug($title);
//get unique slug...
$nSlug = $slug;
$i = 0;
$model = str_replace(' ','',"\App\ ".$model);
while( ($model::whereSlug($nSlug)->count()) > 0){
$i++;
$nSlug = $slug.'-'.$i;
}
if($i > 0) {
$newSlug = substr($nSlug, 0, strlen($slug)) . '-' . $i;
} else
{
$newSlug = $slug;
}
return $newSlug;
}
Replace it with below code
function unique_slug($title = '', $model = 'Ad'){
$slug = str_slug($title);
if ($slug === ''){
$string = mb_strtolower($title, "UTF-8");;
$string = preg_replace("/[\/\.]/", " ", $string);
$string = preg_replace("/[\s-]+/", " ", $string);
$slug = preg_replace("/[\s_]/", '-', $string);
}
//get unique slug...
$nSlug = $slug;
$i = 0;
$model = str_replace(' ','',"\App\ ".$model);
while( ($model::whereSlug($nSlug)->count()) > 0){
$i++;
$nSlug = $slug.'-'.$i;
}
if($i > 0) {
$newSlug = substr($nSlug, 0, strlen($slug)) . '-' . $i;
} else
{
$newSlug = $slug;
}
return $newSlug;
}
And from the next entry, your issue will be fixed
Best Regards