Upgraded from Laravel 8 to 9 and now receiving an error that the MailgunTransportFactory class is missing when dispatching emails. Tried installing with:
composer require alt-symfony/mailgun-connector alt-symfony/http-helper
How can this be fixed?
I’ve encountered a similar issue when working with Laravel 9 after upgrading from an earlier version. The key was to update my configuration and dependencies to match the new structure expected by Laravel’s built-in mail drivers. In my case, I ended up adjusting the services configuration file and ensuring that I pulled in the official Mailgun PHP SDK rather than relying solely on third-party packages. I also cleared the framework cache and recompiled the config files before testing again. This process addressed the missing MailgunTransportFactory error for me, and it might be worth trying a similar approach in your setup.