© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
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
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

TextColumn text clickable.
FilamentFFilament / ❓┊help
15mo ago
Change Button Text Color
FilamentFFilament / ❓┊help
3y ago
How can I change the badge text in a textEntry?
FilamentFFilament / ❓┊help
3y ago
getModelLabel in custom resource page not working
FilamentFFilament / ❓┊help
4w ago