Skip to content

Commit

Permalink
Allow setting key in mail config (#51618)
Browse files Browse the repository at this point in the history
Like other mailer configuration which allows setting the key inside the configuration.

This is useful for when you have multiple mailers from the same transport, but for different accounts.
  • Loading branch information
riasvdv authored May 29, 2024
1 parent 956a63b commit a79593d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Mail/MailManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ protected function addSesCredentials(array $config)
protected function createResendTransport(array $config)
{
return new ResendTransport(
Resend::client($this->app['config']->get('services.resend.key')),
Resend::client($config['key'] ?? $this->app['config']->get('services.resend.key')),
);
}

Expand Down

0 comments on commit a79593d

Please sign in to comment.