Download the PHP package ccoeder/laravel-notification-webhook without Composer
On this page you can find all versions of the php package ccoeder/laravel-notification-webhook. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ccoeder/laravel-notification-webhook
More information about ccoeder/laravel-notification-webhook
Files in ccoeder/laravel-notification-webhook
Package laravel-notification-webhook
Short Description Webhook Notifications driver
License MIT
Homepage https://github.com/ccoeder/laravel-notification-webhook
Informations about the package laravel-notification-webhook
Webhook notifications channel for Laravel 5.3 ~ 5.8
This package makes it easy to send webhooks using the Laravel notification system.
This is an another fork from miladnouri/laravel-notification-webhook because I need to use with on-demand notifications so I added support for that.
Contents
- Installation
- Available Message methods
- Changelog
- Testing
- License
Installation
You can install the package via composer:
Usage
Now you can use the channel in your via()
method inside the notification:
In order to let your Notification know which URL should receive the Webhook data, add the routeNotificationForWebhook
method to your Notifiable model.
This method needs to return the URL where the notification Webhook will receive a POST request.
Available methods
data('')
: Accepts a JSON-encodable value for the Webhook body.userAgent('')
: Accepts a string value for the Webhook user agent.header($name, $value)
: Sets additional headers to send with the POST Webhook.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-notification-webhook with dependencies
guzzlehttp/guzzle Version ~6.0
illuminate/notifications Version 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*
illuminate/support Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*