Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model() Function Not Being Called in nova-csv-import During CSV Import Process #81

Open
HeadStudios opened this issue Apr 17, 2024 · 0 comments

Comments

@HeadStudios
Copy link

Hello @simonhamp,

I am encountering an issue with the Laravel Nova CSV import package where the model() function is not being called during the import process, even though the map() function is executed successfully. Here’s a detailed description of the problem:

  • Environment: Laravel Nova with the nova-csv-import package.
  • Issue: The model() function in Importer.php is not triggered during imports, despite successful execution and data output from the map() function. This issue prevents any model from being created or saved.

Current Observations:

  • The map() function is confirmed to be called and operates correctly (I have debug logs and dumps to verify the data being processed and returned by map()).
  • There are no visible errors or exceptions thrown that I can detect; error handling paths in the import process (like SkipsOnError and SkipsOnFailure) do not seem to capture any issues.
  • Authentication and session state should not be impacting this, as I’ve checked the relevant Auth conditions.

I have recorded a video demonstrating the issue available here: https://share.zight.com/o0uLo75K. Additionally, the public repository for this project can be found here: https://github.com/HeadStudios/CSVImportPackage.

I am working with a limited budget but would greatly appreciate any guidance or suggestions you might have that could lead me to a resolution.

Thank you for any help or insight you can provide!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant