protected function registerIlluminateMailerResolver(): void
    {
        $this->app->afterResolving('mailer', function ($service) {
            $this->app->make('orchestra.mail')->configureIlluminateMailer($service);
        });
    }