I am working with a project where i need to update SMTP details on every admin login. I am storing the details in database, what is the best way to do that.
I think this should answer your question: https://laravel.io/index.php/forum/07-22-2014-swiftmailer-with-dynamic-mail-configuration
Just store it in a database table and use the Config facade to set the details on the fly.
Config