Skip to content
Advertisement

Laravel: How to access config/Mail variables

I need to get address and name variables on my Mail.php config:

JavaScript

I tried this:

JavaScript

But it doesn’t work, what do I do to get them? Thanks.

Advertisement

Answer

I think you can directly access MAIL_NAME from .env

JavaScript

OR

JavaScript

Hope this work for you !!!

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement