Skip to content

Commit

Permalink
Merge pull request #3 from agentphoenix/master
Browse files Browse the repository at this point in the history
Add Laravel 8 support
  • Loading branch information
BSN4 authored Sep 9, 2020
2 parents a8b7a3a + 79ddb6c commit 514df4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Laravel Discord Notification Channel
# Laravel Discord Notification Channel

### Introduction

Expand All @@ -7,14 +7,14 @@ Send Discord messages through webhook with Discord or Slack payload via Laravel
## Features
- Support slack payload by using `new (new SlackMessage)` or `$this->toSlack($notifiable)`
- Support discord webhook payload
- Easy to use
- Easy to use

## Install

Via Composer
``` bash
composer require awssat/discord-notification-channel
```
```

## Usage
in your notification you should define the `discord` channel in the via method
Expand All @@ -36,7 +36,7 @@ you should have a `toDiscord` method
->content('Content')
->embed(function ($embed) {
$embed->title('Discord is cool')->description('Slack nah')
->field('Laravel', '7.0.0', true)
->field('Laravel', '8.0.0', true)
->field('PHP', '8.0.0', true);
});
}
Expand Down Expand Up @@ -101,5 +101,3 @@ class User extends Authenticatable
}

```


2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"require": {
"php": "^7.1.3",
"guzzlehttp/guzzle": "^6.0|^7.0",
"illuminate/notifications": "~5.8.0|^6.0|^7.0",
"illuminate/notifications": "~5.8.0|^6.0|^7.0|^8.0",
"laravel/slack-notification-channel": "^2.0"
},
"require-dev": {
Expand Down

0 comments on commit 514df4b

Please sign in to comment.