Skip to content

Commit b54a6cb

Browse files
committed
Update HasSlug.php
1 parent 8d2ee3c commit b54a6cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Traits/HasSlug.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,9 @@ protected function getSlugField($language = "")
8787

8888
return $field;
8989
}
90+
91+
protected function getSlugAttribute()
92+
{
93+
return $this->{$this->getSlugField()};
94+
}
9095
}

0 commit comments

Comments
 (0)