From 46047ab8820f4f43e47c574894e4c9928cd9f625 Mon Sep 17 00:00:00 2001 From: David VanScott Date: Tue, 8 Sep 2020 17:21:00 -0400 Subject: [PATCH 1/3] Add support for Laravel 8 --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 8d8f1be..6d140d7 100644 --- a/composer.json +++ b/composer.json @@ -10,10 +10,10 @@ } ], "require": { - "php": "^7.1.3", + "php": "^7.3", "guzzlehttp/guzzle": "^6.0|^7.0", - "illuminate/notifications": "~5.8.0|^6.0|^7.0", - "laravel/slack-notification-channel": "^2.0" + "illuminate/notifications": "~5.8.0|^6.0|^7.0|^8.0", + "laravel/slack-notification-channel": "^2.2" }, "require-dev": { "mockery/mockery": "^1.0", From f508f43122df7a83ee65b34d6cd9b7b305f20396 Mon Sep 17 00:00:00 2001 From: David VanScott Date: Tue, 8 Sep 2020 17:23:16 -0400 Subject: [PATCH 2/3] Update readme --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4843ed8..c7aeaee 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Laravel Discord Notification Channel +# Laravel Discord Notification Channel ### Introduction @@ -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 @@ -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); }); } @@ -101,5 +101,3 @@ class User extends Authenticatable } ``` - - From 79ddb6cd9d386fc9a5a666f662dbc81d393a67c5 Mon Sep 17 00:00:00 2001 From: David VanScott Date: Wed, 9 Sep 2020 08:30:43 -0400 Subject: [PATCH 3/3] Revert PHP and Laravel Slack requirements --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 6d140d7..cf5b964 100644 --- a/composer.json +++ b/composer.json @@ -10,10 +10,10 @@ } ], "require": { - "php": "^7.3", + "php": "^7.1.3", "guzzlehttp/guzzle": "^6.0|^7.0", "illuminate/notifications": "~5.8.0|^6.0|^7.0|^8.0", - "laravel/slack-notification-channel": "^2.2" + "laravel/slack-notification-channel": "^2.0" }, "require-dev": { "mockery/mockery": "^1.0",