Global Scopes not being ignored on select

I have this select:
Select::make('categories')
  ->relationship('categories', 'title', function (Builder $query): Builder {
      return $query->withoutGlobalScopes();
  })
  ->multiple()
  ->searchable()
  ->preload()
  ->required()

And everything works fine until I save. Then the options that are displayed are not complete (it's obvious that the global scope is applied).

I have global scopes disabled for the whole resource:
public static function getEloquentQuery(): Builder
{
    return parent::getEloquentQuery()->withoutGlobalScopes();
}


The DB shows that the selected options got saved (4 rows). But the select only shows 3 options selected (since the 4th is blocked by the scope).
Was this page helpful?