Skip to content

Commit db21676

Browse files
committed
Fixed Comments HasSlugable
1 parent e249c97 commit db21676

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Traits/HasSlugable.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ trait HasSlugable
99
{
1010
/**
1111
* Boot the trait HasSlugable.
12-
**/
12+
**/
1313
public static function bootHasSlugable(): void
1414
{
1515
static::saving(function (Model $model) {
@@ -23,10 +23,6 @@ public static function bootHasSlugable(): void
2323
});
2424
}
2525

26-
/**
27-
* Supported From Persian and Arabic to translate slug
28-
**/
29-
3026
protected static function convertToSlug(string $value): string
3127
{
3228
$value = preg_replace('/[\x{200C}\x{200D}]/u', '', $value);
@@ -37,6 +33,10 @@ protected static function convertToSlug(string $value): string
3733
return trim(preg_replace('/-+/', '-', $value), '-');
3834
}
3935

36+
/**
37+
* Supported From Persian and Arabic Numbers to slug
38+
**/
39+
4040
protected static function convertNumbers(string $string): string
4141
{
4242
$numbers = [

0 commit comments

Comments
 (0)