© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
ZetniKovjek

FileUpload with relation

Hello,

I have an Address model which has a relation to my File model:
public function file(): HasMany
{
return $this->hasMany(File::class);
}
File model:
public function address()
{
return $this->belongsTo(Address::class);
}

My goal is to allow the user to upload 2 files to an address with different types. When using the Fieldset component im getting the error that the relationp type (hasMany) is not supported by this component. The repeater field works but then i cant set the type per upload which is necessary.

Does anybody know a way to achieve what i want?
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

FileUpload with relations
FilamentFFilament / ❓┊help
2y ago
FileUpload Image with morphOne relationship
FilamentFFilament / ❓┊help
3y ago
FileUpload on relation ( HasOne) extra parameters
FilamentFFilament / ❓┊help
17mo ago
Relation manager with intermediate relationship
FilamentFFilament / ❓┊help
3y ago