© 2026 Hedgehog Software, LLC

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

Help with Table Builder (Livewire) and passing in data

I see there is a query() method, but suppose I already have a Collection of results. How do I output that into the table?
php public Project $project;

    public function mount(Project $project)
    {
        $this->project = $project;
    }

    public function table(Table $table): Table
    {
        return $table
            ->query($this->project->testcases())
            ->columns([
                TextColumn::make('name')
                    ->searchable(),
                // TextColumn::make('section.name')
                //     ->searchable()

            ])
            ->filters([])
            ->actions([])
            ->bulkActions([]);
    }
php public Project $project;

    public function mount(Project $project)
    {
        $this->project = $project;
    }

    public function table(Table $table): Table
    {
        return $table
            ->query($this->project->testcases())
            ->columns([
                TextColumn::make('name')
                    ->searchable(),
                // TextColumn::make('section.name')
                //     ->searchable()

            ])
            ->filters([])
            ->actions([])
            ->bulkActions([]);
    }
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 Builder update data using Livewire 3
FilamentFFilament / ❓┊help
2y ago
Errors in table builder with a livewire component.
FilamentFFilament / ❓┊help
3y ago
Need Help in Table builder and Relationship
FilamentFFilament / ❓┊help
2y ago
Livewire Starter Kit with Filament form and table builder package
FilamentFFilament / ❓┊help
11mo ago