Questions tagged as 'env'

3
answers

Using the .env file in the PHP project?

I noticed that Laravel uses the .env file for some settings and in code it a env() function, I ask: Is there any way to use the .env file in my project php without using some framework ? If yes, ho...
asked by 11.10.2017 / 17:03
1
answer

Multiples environment laravel

How do I create multiple environment and mute at runtime the environment I'm using in laravel 5.5?     
asked by 27.10.2017 / 21:03
1
answer

problem changing PHP environment variable

I installed php via xampp and I need to change this variable: NSL_LANG.Icreatedaphpfilewiththiscode:<?phpputenv("NLS_LANG=BRAZILIAN PORTUGUESE_BRAZIL.WE8MSWIN1252") or die("Falha ao inserir a variavel de ambiente"); phpinfo(); ?>...
asked by 26.01.2018 / 18:55
1
answer

Show data from the .env file in blade

I would like to read some data from the file .env on page .blade.php , but some do not work, for example, I'm using the following way: apkey: {{env('PUSHER_APP_KEY')}} #ler chave PUSHER_APP_KEY key: {{config('da...
asked by 28.11.2018 / 14:03
0
answers

Multiples .env laravel 5

I have a domain on the server where I uploaded an application in laravel. I created a subdomain and uploaded the same application to this subdomain, but the subdomain is fetching information from the same .env, which is at the root of the projec...
asked by 02.12.2018 / 19:49