© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
TranceCode

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),
            ]);
    }
    public function form(Form $form): Form
    {
        return $form
            ->schema([
                Forms\Components\TextInput::make('name')
                    ->required()
                    ->maxLength(255),
            ]);
    }
image.png
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

Hide RelationManager card based on certain condition
FilamentFFilament / ❓┊help
3y ago
AttachAction in relationManager
FilamentFFilament / ❓┊help
14mo ago
RelationManager in view
FilamentFFilament / ❓┊help
2y ago
Form Defocus in RelationManager
FilamentFFilament / ❓┊help
12mo ago