File tree Expand file tree Collapse file tree 4 files changed +9
-0
lines changed
app/Console/Commands/Environment
resources/lang/en/command Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ MAIL_USERNAME=
2525MAIL_PASSWORD =
2626MAIL_ENCRYPTION = tls
2727MAIL_FROM = no-reply@example.com
28+ MAILGUN_ENDPOINT = api.mailgun.net
2829# You should set this to your domain to prevent it defaulting to 'localhost', causing
2930# mail servers such as Gmail to reject your mail.
3031#
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ class EmailSettingsCommand extends Command
3737 {--encryption=}
3838 {--host=}
3939 {--port=}
40+ {--endpoint=}
4041 {--username=}
4142 {--password=} ' ;
4243
@@ -140,6 +141,11 @@ private function setupMailgunDriverVariables()
140141 trans ('command/messages.environment.mail.ask_mailgun_secret ' ),
141142 $ this ->config ->get ('services.mailgun.secret ' )
142143 );
144+
145+ $ this ->variables ['MAILGUN_ENDPOINT ' ] = $ this ->option ('endpoint ' ) ?? $ this ->ask (
146+ trans ('command/messages.environment.mail.ask_mailgun_endpoint ' ),
147+ $ this ->config ->get ('services.mailgun.endpoint ' )
148+ );
143149 }
144150
145151 /**
Original file line number Diff line number Diff line change 1616 'mailgun ' => [
1717 'domain ' => env ('MAILGUN_DOMAIN ' ),
1818 'secret ' => env ('MAILGUN_SECRET ' ),
19+ 'endpoint ' => env ('MAILGUN_ENDPOINT ' )
1920 ],
2021
2122 'mandrill ' => [
Original file line number Diff line number Diff line change 5353 'ask_smtp_username ' => 'SMTP Username ' ,
5454 'ask_smtp_password ' => 'SMTP Password ' ,
5555 'ask_mailgun_domain ' => 'Mailgun Domain ' ,
56+ 'ask_mailgun_endpoint ' => 'Mailgun Endpoint ' ,
5657 'ask_mailgun_secret ' => 'Mailgun Secret ' ,
5758 'ask_mandrill_secret ' => 'Mandrill Secret ' ,
5859 'ask_postmark_username ' => 'Postmark API Key ' ,
You can’t perform that action at this time.
0 commit comments