Closed basvandertogt closed 1 year ago
I'm trying to add metadata to my mailable but this does not work with Laravel 9.
public function headers() { $options = [ 'metadata' => [ 'team_id' => (string)$this->message->team_id, 'user_id' => (string)$this->message->user_id, 'message_id' => (string)$this->message->id ] ]; return new Headers(text: [ 'X-MSYS-API' => json_encode($options) ]); }
Any idea how to fix this?
I'm trying to add metadata to my mailable but this does not work with Laravel 9.
Any idea how to fix this?