© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Daniel Plomp

How to add multiple images to a model

There are a lot of post already, but still trying to get my head around it: how to add multiple images to a model?
I need to have 1 or 2 images for my model, but not a some collection, but as separate images. I tried this:

SpatieMediaLibraryFileUpload::make('logo')
   ->label('Logo')
   ->columnSpan(6),
SpatieMediaLibraryFileUpload::make('logo_alternative')
   ->label('Logo Alternative')
   ->columnSpan(6),
SpatieMediaLibraryFileUpload::make('logo')
   ->label('Logo')
   ->columnSpan(6),
SpatieMediaLibraryFileUpload::make('logo_alternative')
   ->label('Logo Alternative')
   ->columnSpan(6),


But that results in just one record inside my Media table. Not sure if I'm doing this right?
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

Upload multiple images to a model
FilamentFFilament / ❓┊help
3y ago
How add multiple images for 1 item
FilamentFFilament / ❓┊help
2y ago
How to add data to a model without creating a field
FilamentFFilament / ❓┊help
2y ago
How to add data to a model without creating a field
FilamentFFilament / ❓┊help
2y ago