From 048d181187fbbbf12fa4b6d50712c2b867da3c44 Mon Sep 17 00:00:00 2001 From: relliv Date: Sat, 16 Sep 2023 20:23:25 +0300 Subject: [PATCH] Fix wrong initialize method names --- src/Traits/SluggableName.php | 2 +- src/Traits/SluggableTitle.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);