feat: add slug to all tables

This commit is contained in:
Rico van Zelst
2023-11-02 11:10:15 +01:00
parent 1c18904253
commit 87280627ee
4 changed files with 86 additions and 3 deletions

View File

@@ -25,11 +25,10 @@ class SkinChroma extends Model
public function sluggable(): array
{
$slug = $this->chroma_name.' '.$this->skin_name;
// chroma name + skin name
return [
'slug' => [
'source' => $slug,
'source' => ['chroma_name', 'skin_name'],
],
];
}