I need to ask a stupid question, but my question is: accessing the .env variable inside myself is not from php:
If I have a file .env
for larvel5.4, and I have APP_URL
Like this:
APP_ENV=local
APP_KEY=base64:7qLJMqTxrAPk+tLJscVlmrzf2H16tAfbSoCZuleCkxQ=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
and I have a multi config variable, using a domain link like this:
FACEBOOK_LOGIN_URL=http://localhost:8000/en/portal/facebook_login
FACEBOOK_CALLBACK_URL=http://localhost:8000/en/portal/facebook_callback
TWITTER_LOGIN_URL=http://localhost:8000/en/portal/twitter_login
TWITTER_CALLBACK_URL=http://localhost:8000/en/portal/twitter_callback
GOOGLE_LOGIN_URL=http://localhost:8000/en/portal/google_login
GOOGLE_CALLBACK_URL=http://localhost:8000/en/portal/google_callback
There is a way to access APP_URL in the same file as in this case:
FACEBOOK_LOGIN_URL= APP_URL /en/portal/facebook_login
Please, I am a new member, do not give me a minus for this question.
Thank you all
source
share