Remove un-needed faker guard
This commit is contained in:
parent
2f645b7325
commit
89fb5e321d
1 changed files with 0 additions and 6 deletions
|
@ -226,12 +226,6 @@ class AppServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
public function register()
|
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
|
// Register a custom mailer named `custom.mailer` that will receive his configuration dynamically
|
||||||
$this->app->bind('custom.mailer', function ($app, $parameters) {
|
$this->app->bind('custom.mailer', function ($app, $parameters) {
|
||||||
$transport = new Swift_SmtpTransport($parameters['host'], $parameters['port']);
|
$transport = new Swift_SmtpTransport($parameters['host'], $parameters['port']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue