© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
kcire.dev

ImportColumn::getRelationship()

I have a belongsToMany relationship between User and Hobbies and I am trying to implement the ImportAction. If I expect a string with the name of the hobby in the excel, how do I validate it in order to import it? The relationships are correctly defined in the models. #import
The error i got:
Filament\Actions\Imports\ImportColumn::getRelationship(): Return value must be of type ?Illuminate\Database\Eloquent\Relations\BelongsTo, Illuminate\Database\Eloquent\Relations\BelongsToMany returned
Filament\Actions\Imports\ImportColumn::getRelationship(): Return value must be of type ?Illuminate\Database\Eloquent\Relations\BelongsTo, Illuminate\Database\Eloquent\Relations\BelongsToMany returned
2023-12-15_16-54.png
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

ImportColumn
FilamentFFilament / ❓┊help
3y ago
Ignore ImportColumn
FilamentFFilament / ❓┊help
10mo ago
ImportColumn relationship nullable
FilamentFFilament / ❓┊help
2y ago
Conditional ImportColumn rules
FilamentFFilament / ❓┊help
3y ago