Here is my code to send file content to queue:
$documentToSend = ['file' => file_get_contents($filePath)];
Queue calling:
Queue::pushRaw(json_encode($documentToSend), 'service-call');
Here is my queue handle:
public function handle(){
try {
$file = $this->data->file;
Storage::disk()->put($fileToPath, $file, 'public');
} catch (Exception $e) {
Log::error($e);
}
}
Getting noting in error and nor in data.
Can anyone guild me?
Thanks.
You need to sign in to view this answers
Leave feedback about this