php - Laravel 5.1 ignores any values inside env() -


i uisn glravel 5.1 , setting mail service mailgun. i've found services file contains lines following:

'mailgun' => [     'domain' => env('<domain>'),     'secret' => env('<key>'), ], 

now reason, these values ignored as-is. however, if remove env() method above, works. have this:

'mailgun' => [     'domain' => '<domain>',     'secret' => '<key>', ], 

can explain why is?

because

env('foo'); 

you asking content of "foo" constant defined in .env file. have constant in .env file named 'foo'?


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -