I'm migrating a site I have for Laravel 5 and I came across a problem.
To send email in Laravel I need to manually populate the user and host port data in the .env file
As on my site I have an interface for the user to interact with, I end up receiving this encrypted data from the database, so it becomes unfeasible to fill the MAIL_HOST, MAIL_PORT, MAIL_USERNAME, MAIL_PASSWORD
data manually in the .ENV file, so I ask:
Is it possible to pass this on to the ENV file or to access a function in which I can directly pass this data and trigger the email?