F
Filament2mo ago
rabol

Why does getModelLabel change my text ?

If I understand it correctly, then resource::getLabel() is deprecated, and one should use resource::getModelLabel(). But... why does filament change the text that I return to plural ?
public static function getModelLabel(): string
{
return __('Block field');
}
public static function getModelLabel(): string
{
return __('Block field');
}
become 'Block fields'
Solution:
I was using the wrong method, I should have used getNavigationLabel()
Jump to solution
1 Reply
Solution
rabol
rabol2mo ago
I was using the wrong method, I should have used getNavigationLabel()
Want results from more Discord servers?
Add your server