spatie / laravel-webhook-client

Receive webhooks in Laravel apps
https://freek.dev/1383-sending-and-receiving-webhooks-in-laravel-apps
MIT License
1k stars 147 forks source link

WebhookCall is losing information #170

Closed xmas closed 1 year ago

xmas commented 1 year ago

Hi, I was using this package to receive webhook calls from Mailgun. When the request comes in via WebhookCall, the resulting payload is missing the attachments that were attributes on the original request.

Ideally this data would not be lost.

The missing values were:

  'attachment-1' => 
  \Illuminate\Http\UploadedFile::__set_state(array(
     'test' => false,
     'originalName' => 'crabby.gif',
     'mimeType' => 'image/gif',
     'error' => 0,
     'hashName' => NULL,
  )),
  'attachment-2' => 
  \Illuminate\Http\UploadedFile::__set_state(array(
     'test' => false,
     'originalName' => 'attached_файл.txt',
     'mimeType' => 'text/plain',
     'error' => 0,
     'hashName' => NULL,
  )),