laravel-nova-csv-import
laravel-nova-csv-import copied to clipboard
Possible to isolate the import to a specific team?
First - apologies for posting an issue, I couldn't find discussions or any other way to pose the question... secondly, awesome package - I would really love to be able to use it for my specific use case.
The platform that requires importing has tenancy - so multiple teams and each user has a current_team_id - the usual Jetstream implementation. All Resources have a team_id on them - is it possible to restrict importing to a specific team so that this tool can be made useful to individual teams? Perhaps a way to autopopulate team_id while importing? Thanks!
Dude I think this sub is dead - it's a great plugin and works for some models but not others - if the creator is there we need you!
Btw I'm looking through the source code now - I'm checking out your question - I'm sure you can check for the loggeg in user with a specific meta and then... you know... import based on that paramater.
Have you thought about:
- publishing the csv-import config file
- Pointing to your own Importer class
- Extending the standard Importer class and putting the logic you need in the model() function of that class (which is the part that fills each row of the model from the supplied data)
@gbrits as @matt7ds suggests, this would be your best approach.
I couldn't find discussions or any other way to pose the question
I will open GitHub Discussions so that this can be used for these kinds of questions/discussions.
if the creator is there we need you!
@HeadStudios I'm here. Unfortunately, I don't earn any money off of this package just yet, so I'm not able to prioritise support. I will get around to it eventually.
If you need urgent help though, I'm happy to discuss booking some time to work on this for you.