simonhamp / laravel-nova-csv-import

The best CSV import component for Laravel Nova
https://novapackages.com/packages/simonhamp/laravel-nova-csv-import
MIT License
168 stars 76 forks source link

Possible to isolate the import to a specific team? #48

Closed gbrits closed 1 year ago

gbrits commented 2 years ago

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!

HeadStudios commented 2 years ago

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!

HeadStudios commented 2 years ago

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.

matt7ds commented 1 year ago

Have you thought about:

simonhamp commented 1 year ago

@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.

simonhamp commented 1 year ago

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.