| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function register() |
||
| 29 | { |
||
| 30 | // Automatically apply the package configuration |
||
| 31 | $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'whatsapp'); |
||
| 32 | |||
| 33 | // Register the main class to use with the facade |
||
| 34 | $this->app->singleton(WhatsappNotify::class, function () { |
||
| 35 | return new WhatsappNotify; |
||
| 36 | }); |
||
| 37 | |||
| 38 | Notification::resolved(function (ChannelManager $service) { |
||
| 39 | $service->extend('whatsapp', function () { |
||
| 40 | return new WhatsappChannel(); |
||
| 41 | }); |
||
| 42 | }); |
||
| 43 | |||
| 44 | } |
||
| 45 | } |
||
| 46 |