© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
sadiqgoni13

Model Label Based on User ID

Please i tried this but it is not working
 public static function getModelLabel(): string
    {
        if (auth()->user()->isHrAdmin()) {
            return __('Appraisal Investment');

        }
        return __('Appraisal Request');

    }
 public static function getModelLabel(): string
    {
        if (auth()->user()->isHrAdmin()) {
            return __('Appraisal Investment');

        }
        return __('Appraisal Request');

    }
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

Panel based on individual user ID
FilamentFFilament / ❓┊help
3y ago
Label based on the grammar case
FilamentFFilament / ❓┊help
3y ago
How can I populate table based on user id?
FilamentFFilament / ❓┊help
3y ago