|
|
|
@@ -105,10 +105,16 @@ class EmailManager |
|
|
|
public function confirm() |
|
|
|
{ |
|
|
|
|
|
|
|
// ローカル開発環境用の制御 |
|
|
|
// 送信先の判定と、送信先の書き換え |
|
|
|
if (app()->environment([EnvironmentName::LOCAL->value])) { |
|
|
|
|
|
|
|
$email = $this->model->email; |
|
|
|
if (!Str::endsWith($email, ['@sute.jp', '@satellite-tech.co.jp'])) { |
|
|
|
$emailRewrite = config('mail.developmentEmail'); |
|
|
|
if ($emailRewrite) { |
|
|
|
// 送信先書き換え |
|
|
|
$this->model->email = $emailRewrite; |
|
|
|
} else { |
|
|
|
// 送信NG |
|
|
|
info(sprintf("ローカル環境Email送信対象外アドレスのため、メール送信スキップ [%s]", $email)); |
|
|
|
return; |
|
|
|
} |
|
|
|
|