I created in my root laravel directory, file .env.php. With below content
<?php
return array(
'DB_HOST'=>'localhost',
'DB_NAME'=>'erp',
'DB_USER'=>'root',
'DB_PASS'=>'',
);
Next, in random controller I have code:
dd(App::environment(),$_ENV);
On my output I get
string 'production' (length=10)
array (size=0)
empty
Why $_ENV is empty?