mailersend / mailersend-laravel-driver

The official MailerSend Laravel Driver
https://developers.mailersend.com
MIT License
72 stars 20 forks source link

Allow merging config from Laravel mailer config #53

Closed princejohnsantillan closed 4 months ago

princejohnsantillan commented 4 months ago

Every other mailer transport can have multiple instances in Laravel. This change is to allow for that.

Example:

'mailers' => [
    'mailersend' => [ 
        'transport' => 'mailersend',
        'api_key' => 'prod-key',     
    ],
    'mailersend-staging' => [ 
        'transport' => 'mailersend',
        'api_key' => 'staging-key',     
    ],
]
fosron commented 4 months ago

@princejohnsantillan thank you for the contribution