-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Laravel 8 support. * Dropped Laravel 6 support. * Dependencies are now optional.
- Loading branch information
Showing
8 changed files
with
100 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
<?php | ||
|
||
use NotificationChannels\Webhook\WebhookChannel; | ||
|
||
return [ | ||
|
||
/* | ||
|
@@ -19,13 +17,13 @@ | |
'production' => [ | ||
'sudo' => true, | ||
'processes' => [ | ||
// 'laravel-queue-production-worker:*', | ||
// 'laravel-horizon-project-production:*', | ||
] | ||
], | ||
'staging' => [ | ||
'preprod' => [ | ||
'sudo' => true, | ||
'processes' => [ | ||
// 'laravel-queue-staging-worker:*', | ||
// 'laravel-horizon-project-preprod:*', | ||
] | ||
], | ||
], | ||
|
@@ -65,13 +63,23 @@ | |
/* | ||
* The channels to which the notification will be sent. | ||
*/ | ||
'channels' => ['mail', 'slack', WebhookChannel::class], | ||
'channels' => [ | ||
'mail', | ||
// 'slack', // Requires laravel/slack-notification-channel package | ||
// NotificationChannels\Webhook\WebhookChannel::class, // Requires laravel-notification-channels/webhook package | ||
], | ||
|
||
'mail' => ['to' => '[email protected]'], | ||
'mail' => [ | ||
'to' => '[email protected]', | ||
], | ||
|
||
'slack' => ['webhookUrl' => 'https://your-slack-webhook.slack.com'], | ||
'slack' => [ | ||
'webhookUrl' => 'https://your-slack-webhook.slack.com', | ||
], | ||
|
||
// rocket chat webhook example | ||
'webhook' => ['url' => 'https://rocket.chat/hooks/1234/5678'], | ||
// Rocket chat webhook example | ||
'webhook' => [ | ||
'url' => 'https://rocket.chat/hooks/1234/5678', | ||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Upgrade from v1 to V2 | ||
|
||
Follow the steps below to upgrade the package. | ||
|
||
## Optional dependencies | ||
|
||
The following dependencies are not installed by default anymore: | ||
* https://github.com/laravel/slack-notification-channel | ||
* https://github.com/laravel-notification-channels/webhook | ||
|
||
This allows you to avoid useless dependencies installations if you do not want to send Slack and webhook notifications. | ||
|
||
In the opposite, if you intend to send Slack and/or webhook notifications, install the required dependencies by following the [installation](../../README.md#installation) instructions. | ||
|
||
## See all changes | ||
|
||
See all change with the [comparison tool](https://github.com/Okipa/laravel-table/compare/1.5.0...2.0.0). | ||
|
||
## Undocumented changes | ||
|
||
If you see any forgotten and undocumented change, please submit a PR to add them to this upgrade guide. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters