CAPS in resource headings

I have set up a $modelLabel and $navigationLabel which includes CAPS as part of the string. This appears correctly in navigation and the create button for the resource. But the label is converted to title case in the resource title. How can I force this to keep the correct case?
protected static ?string $modelLabel = 'CUSTOM User';
protected static ?string $navigationLabel = 'CUSTOM Users';
protected static ?string $modelLabel = 'CUSTOM User';
protected static ?string $navigationLabel = 'CUSTOM Users';
Solution:
Aha, nice. Setting protected static ?string $title = 'CUSTOM Users'; in the "ManageRecords" Page works. Thanks @Patrick Boivin
Jump to solution
2 Replies
Patrick Boivin
Patrick Boivin15mo ago
You can override getTitle() on the page class. It wraps the title with Str::headline() by default.
Solution
trovster
trovster15mo ago
Aha, nice. Setting protected static ?string $title = 'CUSTOM Users'; in the "ManageRecords" Page works. Thanks @Patrick Boivin
Want results from more Discord servers?
Add your server