© 2026 Hedgehog Software, LLC

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

How to add a repeating infolist to show all records from a resource?

I can see how to define an infolist but would like to give it a datasource of Model::all() to show all records as cards.
I'd like to add this to a custom page or if it's easier I can create a new resource.
Effectively I need a list page but in a grid format instead of a table.

Any suggestions gratefully received, can't tell from the docs if I need to create a custom livewire component or if I can add it to a resource page?
Solution
So Figured it out. The columns needs some type of formatting for the contentGrid to work.

 public function table(Table $table): Table {
        return $table->query(VisaType::query())
                     ->contentGrid([
                                     'md' => 2,
                                     'xl' => 3,
                                 ])
                     ->columns([
                         Split::make(
                         [
                             TextColumn::make('name')->searchable(),
                             TextColumn::make('description')->searchable()
                         ]
                     )])->paginated(false);
    }
 public function table(Table $table): Table {
        return $table->query(VisaType::query())
                     ->contentGrid([
                                     'md' => 2,
                                     'xl' => 3,
                                 ])
                     ->columns([
                         Split::make(
                         [
                             TextColumn::make('name')->searchable(),
                             TextColumn::make('description')->searchable()
                         ]
                     )])->paginated(false);
    }
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

How to share a resource infolist
FilamentFFilament / ❓┊help
11mo ago
How to show a slideover infolist view when clicking a row in a resource table?
FilamentFFilament / ❓┊help
2y ago
I can't show all records!
FilamentFFilament / ❓┊help
3y ago
How to show image gallery in infolist
FilamentFFilament / ❓┊help
10mo ago