How to change capitalization on model label?
Hey all a resource for my model QrCodes, in this model I have set the model label the following way:
The problem im having is that its displaying Qr Access Codes instead of QR access codes.
According to the documentation you can prevent default the default capitalization in the following way:
https://filamentphp.com/docs/3.x/panels/resources/getting-started#automatic-model-label-capitalization
But variable is not reconized and doesn't do anything. So my question is if anybody knows how I might solve this problem.
8 Replies
should work
output here is QR access codes
maybe you have a translation in place?
check if the string option works π
@Tally thanks for the response, i have tried it without the translation but that still doesn't work. I for some reason also doesn't light up the $hasTitleCaseModelLabel in my editor like it does with the $navigationIcon. See the attached screenshot for reference.
you're using Filament v3?
This is the filament version in my composer.json
The function is intruduced in 3.1 somewhere... could you check shich version you're using? Or just upgrade to minimal 3.2
The hasTitleCaseModelLabel feature was introduced in Filament v3.2
That must be it, Il give an update whenever I have time to upgrade it to a higher version. Thanks for helping me out.
ππ»