1 | <?php |
||
2 | |||
3 | namespace ProtoneMedia\ApiHealth\Notifications; |
||
4 | |||
5 | use Illuminate\Notifications\RoutesNotifications; |
||
6 | |||
7 | class Notifiable |
||
8 | { |
||
9 | use RoutesNotifications; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
10 | |||
11 | /** |
||
12 | * Returns the configured email address. |
||
13 | * |
||
14 | * @return null|string |
||
15 | */ |
||
16 | public function routeNotificationForMail() |
||
17 | { |
||
18 | return config('api-health.notifications.mail.to'); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Returns the webhook url for slack. |
||
23 | * |
||
24 | * @return null|string |
||
25 | */ |
||
26 | public function routeNotificationForSlack() |
||
27 | { |
||
28 | return config('api-health.notifications.slack.webhook_url'); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * An identifier for this notifiable class. |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getKey() |
||
37 | { |
||
38 | return 'laravel-api-health'; |
||
39 | } |
||
40 | } |
||
41 |