Skip to content

Commit e40cc7f

Browse files
Update MAILER config to use mailpit on L11 (#678)
* Update the .env with mailpit port * Update the .env to use smtp mailer when mailpit is installed
1 parent cd032b0 commit e40cc7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Console/Concerns/InteractsWithDockerComposeServices.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ protected function replaceEnvVariables(array $services)
185185
}
186186

187187
if (in_array('mailpit', $services)) {
188+
$environment = preg_replace("/^MAIL_MAILER=(.*)/m", "MAIL_MAILER=smtp", $environment);
188189
$environment = preg_replace("/^MAIL_HOST=(.*)/m", "MAIL_HOST=mailpit", $environment);
190+
$environment = preg_replace("/^MAIL_PORT=(.*)/m", "MAIL_PORT=1025", $environment);
189191
}
190192

191193
file_put_contents($this->laravel->basePath('.env'), $environment);

0 commit comments

Comments
 (0)