Skip to content

Commit

Permalink
Fix infolist entry label
Browse files Browse the repository at this point in the history
  • Loading branch information
zepfietje committed Apr 23, 2024
1 parent ddb4afd commit 31407c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/infolists/src/Components/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public function getId(): string
public function getLabel(): string | Htmlable | null
{
$label = parent::getLabel() ?? (string) str($this->getName())
->before('.')
->beforeLast('.')
->afterLast('.')
->kebab()
->replace(['-', '_'], ' ')
->ucfirst();
Expand Down

0 comments on commit 31407c2

Please sign in to comment.