Laravel now builds on symfony mailer, and it has several drivers that use api keys (for instance mailgun) https://laravel.com/docs/9.x/mail#mailgun-driver
If it is a custom driver you need, you can add your own. Here is an example package that adds a custom driver https://github.com/s-ichikawa/laravel-sendgrid-driver