Moving the file to a Laravel Job #59
-
Hello, So, I'm using Spatie's MediaLibrary to move large files, and these large files are being uploaded by this plugin, I need to essentially create a job that:
The problem I'm having is, I get the error that I can't serialize P.s just to clarify, the reason I need it is so I can do this: $testData->test()->create(
[
'content' => $request->content
]
)->addMedia(Filepond::field($request->file)->getFile()) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Simple solution: Remove the |
Beta Was this translation helpful? Give feedback.
Simple solution: Remove the
->getFile()
at the end, and then reapply it to the variable inside of the job.