create( new Dsn( 'mailjet+api', 'default', config('services.mailjet.key'), config('services.mailjet.secret') ) ); }); } /** * Register the application services. * * @return void */ public function register(): void { $this->app->singleton('Mailjet', function () { $config = $this->app['config']->get('services.mailjet', []); $call = $this->app['config']->get('services.mailjet.common.call', true); $options = $this->app['config']->get('services.mailjet.common.options', []); return new MailjetService($config['key'], $config['secret'], $call, $options); }); } /** * @return array */ public function provides(): array { return ['mailjet']; } }