From e2565f1b3a4a522a10fc03308c1b195681700c18 Mon Sep 17 00:00:00 2001 From: Daniel LaBarge Date: Wed, 26 Oct 2016 11:42:13 -0500 Subject: [PATCH] Change from _ to - --- src/Traits/SluggableModelTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/SluggableModelTrait.php b/src/Traits/SluggableModelTrait.php index cac53c6..a848f70 100644 --- a/src/Traits/SluggableModelTrait.php +++ b/src/Traits/SluggableModelTrait.php @@ -23,7 +23,7 @@ trait SluggableModelTrait */ public function makeSlug($value) { - $value = preg_replace('/[^a-zA-Z0-9\-\_]+/', '_', $value); + $value = preg_replace('/[^a-zA-Z0-9\-\_]+/', '-', $value); return strtolower($value); }