laravel could not parse uri

When we installed an environment later, we pulled a direct laravel environment, but after running in the background will directly report errors Could not parse URI's

The investigation, because the profile of the issue, we did not set the environment variable APP_ENV, and the default settings are not .env of ES

The .env.dev files are generally set up as our development environment is used, laravel default when the environment variable is APP_ENV = dev time will automatically call .env.dev as a configuration file

 

So there are two approaches,

1. perfect .env file configuration of ES

2. Direct configure the system environment variables APP_ENV = dev to read the correct profile

Guess you like

Origin www.cnblogs.com/taui/p/11670805.html