© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
! GhostvOne.tv 👻🇫🇷

❓ SpatieMediaLibraryFileUpload on repeater with relation doesn't work

Hi !
I'm trying to have a SpatieMediaLibraryFileUpload on every block generated by my repeater.
I'm having an error :
Filament\Forms\Components\SpatieMediaLibraryFileUpload::Filament\Forms\Components\{closure}(): Argument #2 ($record) must be of type Spatie\MediaLibrary\HasMedia, Spatie\MediaLibrary\MediaCollections\Models\Media given, called in /app/vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 35
Filament\Forms\Components\SpatieMediaLibraryFileUpload::Filament\Forms\Components\{closure}(): Argument #2 ($record) must be of type Spatie\MediaLibrary\HasMedia, Spatie\MediaLibrary\MediaCollections\Models\Media given, called in /app/vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 35
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

SpatieMediaLibraryFileUpload doesn't work with ->multiple()
FilamentFFilament / ❓┊help
3y ago
Repeater doesn't work inside builder
FilamentFFilament / ❓┊help
6mo ago
->relationship() with hasOneThrough() relation doesn't work anymore
FilamentFFilament / ❓┊help
3y ago
Locale switcher doesn't work properly on form repeater with relationship
FilamentFFilament / ❓┊help
3y ago