Fix SMTP username and password shouldn't be required (#2287)

This commit is contained in:
phanlyhuynh 2020-09-07 02:12:03 +07:00 committed by GitHub
parent e59c3fa279
commit 207d9c9578

View File

@ -34,8 +34,8 @@ class SmtpDriver implements DriverInterface
'mail_host' => 'required',
'mail_port' => 'nullable|integer',
'mail_encryption' => 'nullable|in:tls,ssl',
'mail_username' => 'required',
'mail_password' => 'required',
'mail_username' => 'nullable|string',
'mail_password' => 'nullable|string',
])->errors();
}