update setting env smtp
This commit is contained in:
@@ -90,12 +90,12 @@ final class MailSettings
|
||||
$mail = Setting::where('key', 'smtp')->first();
|
||||
$setting = Setting::where('key', 'setting')->first();
|
||||
|
||||
if (!$mail || !$setting) {
|
||||
$mail = $mail ? json_decode((string) $mail->value) : null;
|
||||
if (!is_object($mail)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$mail = json_decode($mail->value);
|
||||
$company = json_decode($setting->value)->company ?? 'Your Company';
|
||||
$company = ($setting ? json_decode((string) $setting->value)->company ?? null : null) ?: config('mail.from.name');
|
||||
|
||||
$password = '';
|
||||
if (isset($mail->password)) {
|
||||
|
||||
Reference in New Issue
Block a user