condition in relationManager

I have some modules where I have created Relations Manager, I am using this in a Tenancy integration and when creating a relationship all the records are shown, my question is where do I do the filter or where condition for what is filtered in the select? For example, in my relationship select, do I want to show only those that belong to the logged-in user's company?

is here in my PlansRelationManager.php for example?

    public function form(Form $form): Form
    {
        return $form
            ->schema([
                Forms\Components\TextInput::make('name')
                    ->required()
                    ->maxLength(255),
            ]);
    }
image.png
Was this page helpful?