1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 13:54:04 +00:00

Always resolve only the mailers specified in the mailersToNotCache public static property

This commit is contained in:
lukinovec 2022-10-31 17:40:27 +01:00
parent 54e286d367
commit c1d0b81d5f

View file

@ -8,8 +8,16 @@ use Illuminate\Mail\MailManager;
class TenancyMailManager extends MailManager class TenancyMailManager extends MailManager
{ {
public static array $mailersToNotCache = [
'smtp',
];
protected function get($name) protected function get($name)
{ {
return $this->resolve($name); if (in_array($name, static::$mailersToNotCache)) {
return $this->resolve($name);
}
return parent::get($name);
} }
} }