phpdotenv Questions
4
Solved
How to use dotenv variables set in the Docker file, passed to a Php application?
Recently tried to use a ".env" file with a set of key paired values to use across different configuration files, bu...
Lanna asked 9/9, 2019 at 22:29
27
Solved
After upgrading to Laravel 5.2, none of my .env file values are being read. I followed the upgrade instructions; none of my config files were changed except auth.php. They were all working fine in ...
5
Unfortunately config(['key' => 'newValue']) doesn't work in a Dusk setup (for overriding a config value), presumably because it would change the config of the system running the test rather than...
Mane asked 18/10, 2019 at 12:20
12
Hello guys I am so confused I dont know what I am doing wrong this told me
Fatal error: Class 'Dotenv\Dotenv' not found in
But I dont understand why..
$dotenv = new \Dotenv\Dotenv(dirname(dirnam...
Kenner asked 12/5, 2016 at 23:54
6
What is difference between use env('APP_ENV'), config('app.env') or App::environment() to get app environment?
I know that the env('APP_ENV') will to $_ENV, config('app.env') reads the configurati...
Rosie asked 13/10, 2016 at 16:57
13
Solved
This problem only happens with Laravel 5.8 on my shared hosting.
It is working fine in my shared hosting with Laravel 5.7.
It is working fine in my local environment with Laravel 5.8.
the problem i...
Hambrick asked 13/3, 2019 at 17:55
13
Solved
I try to find out why my env() helper always returns null. This causes trouble especially in app.php file, where are env() helpers widely used by default. Perhaps any mysterious server setting?
My...
Tensive asked 6/4, 2017 at 0:27
3
I have some problems with getting Laravel to load the proper .env file for my testcases.
I'm using PHPUnit with the following var set in phpunit.xml:
<?xml version="1.0" encoding="UTF-8"?>
...
4
I installed phpdotenv from vlucas using composer on a codeigniter project.
I have added the hook as well which I am bit confused if needed for v3.3
$hook['pre_system'] = function() {
$dotenv = ...
Bentinck asked 28/2, 2019 at 8:20
1
Solved
I started a project using composer and donlowaded the package vlucas/phpdotenv. I would like to call the $_ENV['name'] for example in my whole project without needing to instantiate the dot env in ...
Brosy asked 16/7, 2021 at 11:52
1
I'm trying to upload a Lumen project in Amazon Elastic Beanstalk.
.env is in .gitignore.
This is OK, because I have several environement ( dev, qa, prod), so I need to configure have separate env...
Stitching asked 14/12, 2015 at 22:20
1
Solved
I am using Laravel 6.x for client's project wherein I have built an API in the Artisan Command for syncing data.
Now client wants the configuration to be discreet, out of main source code and witho...
Confide asked 9/7, 2020 at 17:25
1
Solved
I want to have dynamic seeders based on my environment. (eg in testing I want so only seed 100 rows, whereas local it would be 10'000).
I've created seeder.php in the config, which is calling valu...
10
I have a .env file containing my database connection details, as is normal for Laravel 5. I want to override these for testing, which I can do in phpunit.xml. However, doing this seems to go agains...
1
Solved
I have a simple Symfony project, using "symfony/dotenv": "4.3.*", in the composer.json and trying to read in the value of an environment variable.
This is my command:
var_dump($_ENV['MY_NEW_VAR']...
3
Solved
Within PHP, *.ini files can be read by using parse_ini_file(). However, various frameworks (Laravel included) opt to, instead, bring in a separate library to parse an environment file.
What is th...
1
Solved
I'm wondering if there's a way in Laravel to specify a set of env files to load. My exact problem is I want to add something like a suffix to all my .js and .css resources. Ideally I'd have a suffi...
4
Solved
I have a few subdomain in my laravel 5 application, each sub domain have a specific configuration, like mail, nocaptcha, etc.
how to set .env file to work with my-specific subdomain ?
3
Solved
I'm using dotenv for PHP to manage the environment settings (not lavarel but I tagged it because lavarel also uses dotenv)
I have excluded the .env from the code base and I have added the .env.exa...
Philosophical asked 4/6, 2015 at 13:37
1
© 2022 - 2024 — McMap. All rights reserved.