for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\MicrosoftTeams;
use GuzzleHttp\Client as HttpClient;
use Illuminate\Container\Container;
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\ServiceProvider;
class MicrosoftTeamsServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
// Bootstrap code here.
$this->app->when(MicrosoftTeamsChannel::class)
->needs(MicrosoftTeams::class)
->give(static function () {
return new MicrosoftTeams(
new HttpClient()
);
});
}
* Register the application services.
public function register()
Notification::extend('teams', static function (Container $app) {
return $app->make(MicrosoftTeamsChannel::class);