for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\AwsSns;
use Aws\Sns\SnsClient as SnsService;
use Illuminate\Support\ServiceProvider;
class SnsServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
$this->app->when(SnsChannel::class)
->needs(Sns::class)
->give(function () {
return new Sns($this->app->make(SnsService::class));
});
$this->app->bind(SnsService::class, function () {
return new SnsService($this->app['config']['services.sns']);
}