File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 = [
You can’t perform that action at this time.
0 commit comments