Parallel map not work with Laravel #205
Unanswered
scortes1989
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This may help: https://github.com/spatie/laravel-collection-macros/issues/108#issuecomment-1061329711 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
collect($documents)->parallelMap(function($file) use ($companyPackDocumentConfig) { Document::query()->create([ 'name' => $file, 'template_id' => $companyPackDocumentConfig, ]); });
this does not work , error: Call to a member function connection() on null
Beta Was this translation helpful? Give feedback.
All reactions