© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Bloom

Help on table eloquent relationship

I have Sale and Branch Model with one to Many relationship. I made custom page with query like
    public function table(Table $table): Table
    {
        return $table
        ->relationship(fn (): HasMany => $this->branch->sales())
        ->inverseRelationship('branch')
        ->columns([
            TextColumn::make('branch_name'),
        ]);
    }
    public function table(Table $table): Table
    {
        return $table
        ->relationship(fn (): HasMany => $this->branch->sales())
        ->inverseRelationship('branch')
        ->columns([
            TextColumn::make('branch_name'),
        ]);
    }

But unfortunately no result came. I tried debugging using debug bar but no query regarding this join is visible
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

Creating eloquent relationship model from table
FilamentFFilament / ❓┊help
3y ago
Convert Eloquent relationship to query builder for table?
FilamentFFilament / ❓┊help
3y ago
Need Help Integrating with a BelongsToMany Eloquent relationship
FilamentFFilament / ❓┊help
10mo ago
Convert model method to eloquent relationship
FilamentFFilament / ❓┊help
2y ago