mirror of
https://github.com/pelican-dev/panel.git
synced 2025-06-22 18:41:07 +02:00
Better kebab names
This commit is contained in:
parent
dbad5ae9c7
commit
551175862e
@ -281,6 +281,12 @@ class Egg extends Model
|
||||
|
||||
public function getKebabName(): string
|
||||
{
|
||||
return str($this->name)->kebab()->lower()->trim()->split('/[^\w\-]/')->join('');
|
||||
return str($this->name)
|
||||
->kebab()
|
||||
->replace('--', '-')
|
||||
->lower()
|
||||
->trim()
|
||||
->split('/[^\w\-]/')
|
||||
->join('');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user