from() itself), which * this provider has no business second-guessing. * StoreDetailsService::current() is forever-cached (see its own * docblock), so this costs nothing extra per send. */ public function applyMailFromName(MessageSending $event): void { $name = app(StoreDetailsService::class)->current()->mail_from_name; if (blank($name)) { return; } $from = $event->message->getFrom()[0] ?? null; if ($from === null || $from->getAddress() !== config('mail.from.address')) { return; } $event->message->from(new Address($from->getAddress(), $name)); } }