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');

    }
Was this page helpful?