From 89fb5e321d4d8a84cc85c8a7df81b767ced4c2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Micard?= Date: Wed, 10 Nov 2021 08:08:01 +0100 Subject: [PATCH] Remove un-needed faker guard --- content/posts/laravel-dynamic-smtp-mail-configuration.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/content/posts/laravel-dynamic-smtp-mail-configuration.md b/content/posts/laravel-dynamic-smtp-mail-configuration.md index 6290de4..993ec2f 100644 --- a/content/posts/laravel-dynamic-smtp-mail-configuration.md +++ b/content/posts/laravel-dynamic-smtp-mail-configuration.md @@ -226,12 +226,6 @@ class AppServiceProvider extends ServiceProvider { public function register() { - // When running in testing environment then return the mocked mail implementation - if (env('APP_ENV') === 'testing') { - $this->app->singleton('custom.mailer', MailFake::class); - return; - } - // Register a custom mailer named `custom.mailer` that will receive his configuration dynamically $this->app->bind('custom.mailer', function ($app, $parameters) { $transport = new Swift_SmtpTransport($parameters['host'], $parameters['port']);