class ShieldOverrideResource extends RoleResource
{
public static function getModelLabel(): string
{
return __('employee.permission_roles'); // doesn't work
}
public static function getPluralModelLabel(): string
{
return 'test'; // doesn't work
}
public static function getNavigationLabel(): string
{
return 'test'; // works
}
public static function getNavigationParentItem(): string
{
return __('employee.plural'); // works
}
public static function shouldRegisterNavigation(): bool
{
return true; // works
}
}
class ShieldOverrideResource extends RoleResource
{
public static function getModelLabel(): string
{
return __('employee.permission_roles'); // doesn't work
}
public static function getPluralModelLabel(): string
{
return 'test'; // doesn't work
}
public static function getNavigationLabel(): string
{
return 'test'; // works
}
public static function getNavigationParentItem(): string
{
return __('employee.plural'); // works
}
public static function shouldRegisterNavigation(): bool
{
return true; // works
}
}