connect mail sender with api

This commit is contained in:
yashkanakiya
2023-03-14 12:59:58 +05:30
parent 959aa257b4
commit aede1f76d0
26 changed files with 756 additions and 1466 deletions

View File

@ -70,7 +70,13 @@ class MailSenderRequest extends FormRequest
public function getMailSenderPayload()
{
return collect($this->validated())
$data = $this->validated();
if ($data['settings']['encryption'] == 'none') {
$data['settings']['encryption'] = '';
}
return collect($data)
->merge([
'company_id' => $this->header('company'),
])