© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•10mo ago•
1 reply
czehnter

SpatieMediaLibraryFileUpload is ignoring relationship

Hi, I have a
Section
Section
inside my form that has a defined
->relationship('profile')
->relationship('profile')
. Inside this section I have an
Action
Action
modal to upload a photo to the
UserProfile
UserProfile
model. My problem is that
SpatieMediaLibraryFileUpload
SpatieMediaLibraryFileUpload
seems to ignore the relationship and always tries to save the file to the parent
User
User
model which then fails. How can I fix that?
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

BelongsTo is returning all records - ignoring where on relationship?
FilamentFFilament / ❓┊help
3y ago
SpatieMediaLibraryFileUpload order is reversed?
FilamentFFilament / ❓┊help
2mo ago
How to save relationship of `SpatieMediaLibraryFileUpload` to `statePath`
FilamentFFilament / ❓┊help
5mo ago
SpatieMediaLibraryFileUpload - Display is very slow
FilamentFFilament / ❓┊help
2y ago