Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I do array parameters? #85

Closed
BrendanTWhite opened this issue May 15, 2015 · 1 comment
Closed

Can I do array parameters? #85

BrendanTWhite opened this issue May 15, 2015 · 1 comment

Comments

@BrendanTWhite
Copy link

Sorry, please ignore this issue - I just figured out the answer to my own question.

@BrendanTWhite
Copy link
Author

The answer to array parameters is simple, now that I think of it. In the config/mail.php file, I'll do this:

'from' => [
    'address' => env('MAIL_FROM_ADDRESS', 'default@default.com'), 
    'name' => env('MAIL_FROM_NAME', 'Default From Name')
],

... and in .env I'll do this:

MAIL_FROM_ADDRESS=email@example.com
MAIL_FROM_NAME=Sample Name

I'm using Laravel 5.0 and mailtrap.io, by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant