@@ -12,7 +12,7 @@ This package makes it easy to send notifications using [Microsoft Teams](https:/
1212
1313``` php
1414return MicrosoftTeamsMessage::create()
15- ->to(config('services.teams .sales_url'))
15+ ->to(config('services.microsoft_teams .sales_url'))
1616 ->type('success')
1717 ->title('Subscription Created')
1818 ->content('Yey, you got a **new subscription**. Maybe you want to contact him if he needs any support?')
@@ -67,7 +67,7 @@ Add the following code to your `config/services.php`:
6767``` php
6868// config/services.php
6969...
70- 'teams ' => [
70+ 'microsoft_teams ' => [
7171 'webhook_url' => env('TEAMS_WEBHOOK_URL'),
7272],
7373...
@@ -78,7 +78,7 @@ You can also add multiple webhooks if you have multiple teams or channels, it's
7878``` php
7979// config/services.php
8080...
81- 'teams ' => [
81+ 'microsoft_teams ' => [
8282 'sales_url' => env('TEAMS_SALES_WEBHOOK_URL'),
8383 'dev_url' => env('TEAMS_DEV_WEBHOOK_URL'),
8484],
@@ -103,7 +103,7 @@ class SubscriptionCreated extends Notification
103103 public function toMicrosoftTeams($notifiable)
104104 {
105105 return MicrosoftTeamsMessage::create()
106- ->to(config('services.teams .sales_url'))
106+ ->to(config('services.microsoft_teams .sales_url'))
107107 ->type('success')
108108 ->title('Subscription Created')
109109 ->content('Yey, you got a **new subscription**. Maybe you want to contact him if he needs any support?')
@@ -117,7 +117,7 @@ Instead of adding the `to($url)` method for the recipient you can also add the `
117117``` php
118118public function routeNotificationForMicrosoftTeams(Notification $notification)
119119{
120- return config('services.teams .sales_url')
120+ return config('services.microsoft_teams .sales_url')
121121}
122122```
123123
0 commit comments