lundi 12 octobre 2015

Update STMP config on the fly in Laravel 5.1

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.

I hope this is clear, if not please let me know!

Thank you in advance!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire