© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
75 replies
Husky110

Implementing a table on a resource-view-page

Hey - I think I'm missing something, so maybe just point me in the right direction.
Given I got a resource with a relation to another model. Now what I wanna do is something like this on my view-page:
Section::make('myrelation-headline')
                ->icon('section-icon')
                ->schema([
                    Table::make('myrelation')
                        ->columns([
                            TextColumn::make('myrelation.property1')
                                ->label('p1-label'),
                            TextColumn::make('myrelation.property2')
                                ->label('p2-label')
                        ])
                ])
Section::make('myrelation-headline')
                ->icon('section-icon')
                ->schema([
                    Table::make('myrelation')
                        ->columns([
                            TextColumn::make('myrelation.property1')
                                ->label('p1-label'),
                            TextColumn::make('myrelation.property2')
                                ->label('p2-label')
                        ])
                ])

But
Section->schema
Section->schema
expects type
Filament\Forms\Components\Component
Filament\Forms\Components\Component
- so I tried creating my own component via
php artisan make:component MyComponent
php artisan make:component MyComponent
and following the table-builder-docs, but filament seem to not like this aswell, since it's throwing
Argument #1 ($component) must be of type Filament\Forms\Components\Component, App\View\Components\MyComponent given
Argument #1 ($component) must be of type Filament\Forms\Components\Component, App\View\Components\MyComponent given
.
Hopefully I'm missing an easy way here, since I just want a simple table for my relation and creating a new component (even if it works) would just add aditional load to the database, since I already got my relation already loaded through the view-page.
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

Table on resource edit page?
FilamentFFilament / ❓┊help
3y ago
Conditional action on view resource page
FilamentFFilament / ❓┊help
3y ago
Filtering a Table Widget from a Chart Widget on a Resource View page possible?
FilamentFFilament / ❓┊help
2y ago
Custom table on resource edit page
FilamentFFilament / ❓┊help
2y ago
Next page