@@ -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?')
@@ -63,7 +63,7 @@ Add the following code to your `config/services.php`:
6363``` php
6464// config/services.php
6565...
66- 'teams ' => [
66+ 'microsoft_teams ' => [
6767 'webhook_url' => env('TEAMS_WEBHOOK_URL'),
6868],
6969...
@@ -74,7 +74,7 @@ You can also add multiple webhooks if you have multiple teams or channels, it's
7474``` php
7575// config/services.php
7676...
77- 'teams ' => [
77+ 'microsoft_teams ' => [
7878 'sales_url' => env('TEAMS_SALES_WEBHOOK_URL'),
7979 'dev_url' => env('TEAMS_DEV_WEBHOOK_URL'),
8080],
@@ -99,7 +99,7 @@ class SubscriptionCreated extends Notification
9999 public function toMicrosoftTeams($notifiable)
100100 {
101101 return MicrosoftTeamsMessage::create()
102- ->to(config('services.teams .sales_url'))
102+ ->to(config('services.microsoft_teams .sales_url'))
103103 ->type('success')
104104 ->title('Subscription Created')
105105 ->content('Yey, you got a **new subscription**. Maybe you want to contact him if he needs any support?')
@@ -113,7 +113,7 @@ Instead of adding the `to($url)` method for the recipient you can also add the `
113113``` php
114114public function routeNotificationForMicrosoftTeams(Notification $notification)
115115{
116- return config('services.teams .sales_url')
116+ return config('services.microsoft_teams .sales_url')
117117}
118118```
119119
0 commit comments