laravel-notification-channels / webhook

Webhook notifications channel for Laravel
https://laravel-notification-channels.com
MIT License
170 stars 61 forks source link

Update WebhookChannel to use the json request option in Guzzle #13

Open kylestev opened 7 years ago

kylestev commented 7 years ago

The json option essentially does what the code is doing now (calling json_encode) along with setting the Content-Type header to application/json.


This will automatically set the appropriate Content-Type header[1]

[1] http://docs.guzzlephp.org/en/stable/request-options.html#json

kylestev commented 7 years ago

Style CI does not pass but I did resolve the issues in #11 if that is merged.

atymic commented 4 years ago

ping @kylestev