© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
dotdotdot

csv import creating data in multiple models

Hello, let's say I have a user and a course. a user can have many courses
and I have a csv with the following data.

userId
userId
,
userName
userName
,
courseName
courseName
,
CourseDescription
CourseDescription
.

in my database the relation between the courses and the user is made through the
userId
userId
, it's a one-to-many relationship

I am in the courses view in filament which has a csv import button,
if I import this csv I am assuming it will be able to fill in the
userId
userId
,
courseName
courseName
and
courseDescription
courseDescription
. but my question is: if the
userId
userId
doesn't exist in the users table, can filament also create this new user?
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

Import csv data
FilamentFFilament / ❓┊help
2y ago
Import action multiple models
FilamentFFilament / ❓┊help
2y ago
Import CSV multiple columns in one relationship
FilamentFFilament / ❓┊help
17mo ago
Alter CSV data before import
FilamentFFilament / ❓┊help
5mo ago