Skip to content

Commit

Permalink
Fix wrong initialize method names
Browse files Browse the repository at this point in the history
  • Loading branch information
relliv committed Sep 16, 2023
1 parent 18468c6 commit 048d181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Traits/SluggableName.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

trait SluggableName
{
public function initializeSluggable(): void
public function initializeSluggableName(): void
{
static::creating(function ($model) {
$model->slug = Str::slug($model->name);
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/SluggableTitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

trait SluggableTitle
{
public function initializeSluggable(): void
public function initializeSluggableTitle(): void
{
static::creating(function ($model) {
$model->slug = Str::slug($model->title);
Expand Down

0 comments on commit 048d181

Please sign in to comment.