My mailing functionality works by adding the configs on .env
file.
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=username
MAIL_PASSWORD=passwordd
MAIL_FROM=info@text.com
MAIL_NAME=Info
But my problem is I don't know how to update this configs dynamically. I've try using the helper config()
but I can't see the SMTP values in config('app')
.
In case you're wondering why I want to do this is because the SMTP configs will come from the DB.