mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
remove sparkpost and mandrill
This commit is contained in:
@ -81,10 +81,8 @@ class EnvironmentController extends Controller
|
||||
'mail_mailgun_endpoint' => config('services.mailgun.endpoint'),
|
||||
'mail_mailgun_domain' => config('services.mailgun.domain'),
|
||||
'mail_mailgun_secret' => config('services.mailgun.secret'),
|
||||
'mail_sparkpost_secret' => config('services.sparkpost.secret'),
|
||||
'mail_ses_key' => config('services.ses.key'),
|
||||
'mail_ses_secret' => config('services.ses.secret'),
|
||||
'mail_mandrill_secret' => config('services.mandrill.secret'),
|
||||
];
|
||||
|
||||
|
||||
@ -102,9 +100,7 @@ class EnvironmentController extends Controller
|
||||
'mail',
|
||||
'sendmail',
|
||||
'mailgun',
|
||||
'mandrill',
|
||||
'ses',
|
||||
'sparkpost'
|
||||
'ses'
|
||||
];
|
||||
|
||||
return response()->json($drivers);
|
||||
|
||||
@ -51,18 +51,6 @@ class MailEnvironmentRequest extends FormRequest
|
||||
];
|
||||
break;
|
||||
|
||||
case 'sparkpost':
|
||||
return [
|
||||
'mail_driver' => 'required|string|max:50',
|
||||
'mail_host' => 'required|string|max:50',
|
||||
'mail_port' => 'required|max:50',
|
||||
'mail_sparkpost_secret' => 'required|string',
|
||||
'mail_encryption' => 'required|string|max:50',
|
||||
'from_name' => 'required|string|max:50',
|
||||
'from_mail' => 'required|string|max:50',
|
||||
];
|
||||
break;
|
||||
|
||||
case 'ses':
|
||||
return [
|
||||
'mail_driver' => 'required|string|max:50',
|
||||
@ -89,19 +77,6 @@ class MailEnvironmentRequest extends FormRequest
|
||||
'from_mail' => 'required|string|max:50',
|
||||
];
|
||||
break;
|
||||
|
||||
case 'mandrill':
|
||||
return [
|
||||
'mail_driver' => 'required|string|max:50',
|
||||
'mail_host' => 'required|string|max:50',
|
||||
'mail_port' => 'required|max:50',
|
||||
'mail_mandrill_secret' => 'required|string',
|
||||
'mail_encryption' => 'required|string|max:50',
|
||||
'from_name' => 'required|string|max:50',
|
||||
'from_mail' => 'required|string|max:50',
|
||||
];
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user