mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:14:03 +00:00
Always resolve only the mailers specified in the mailersToNotCache public static property
This commit is contained in:
parent
54e286d367
commit
c1d0b81d5f
1 changed files with 9 additions and 1 deletions
|
|
@ -8,8 +8,16 @@ use Illuminate\Mail\MailManager;
|
|||
|
||||
class TenancyMailManager extends MailManager
|
||||
{
|
||||
public static array $mailersToNotCache = [
|
||||
'smtp',
|
||||
];
|
||||
|
||||
protected function get($name)
|
||||
{
|
||||
return $this->resolve($name);
|
||||
if (in_array($name, static::$mailersToNotCache)) {
|
||||
return $this->resolve($name);
|
||||
}
|
||||
|
||||
return parent::get($name);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue