I need to get address and name variables on my Mail.php config:
'from' => ['address' => env('MAIL_USERNAME'), 'name' => env('MAIL_NAME')],
I tried this:
Config::get('mail.from.*.name'); Config::get('mail.from["name"]');
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
env('MAIL_NAME');
OR
Config::get('mail.from.name');
Hope this work for you !!!