diff --git a/src/Traits/SluggableName.php b/src/Traits/SluggableName.php index a26e5ef..ed9feb0 100644 --- a/src/Traits/SluggableName.php +++ b/src/Traits/SluggableName.php @@ -7,7 +7,7 @@ trait SluggableName { - public function initializeSluggable(): void + public function initializeSluggableName(): void { static::creating(function ($model) { $model->slug = Str::slug($model->name); diff --git a/src/Traits/SluggableTitle.php b/src/Traits/SluggableTitle.php index d6028da..580b16e 100644 --- a/src/Traits/SluggableTitle.php +++ b/src/Traits/SluggableTitle.php @@ -7,7 +7,7 @@ trait SluggableTitle { - public function initializeSluggable(): void + public function initializeSluggableTitle(): void { static::creating(function ($model) { $model->slug = Str::slug($model->title);