Home > Backend Development > PHP Tutorial > Laravel的.env文件问题

Laravel的.env文件问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:13:40
Original
1157 people have browsed it

Laravel项目的.env文件默认是在项目根目录,能否修改这个文件储存的位置,比如我想把它剪切放到项目根目录的上一层目录,那么放到上一层目录之后,这个文件怎么像原来那样工作呢?

回复内容:

Laravel项目的.env文件默认是在项目根目录,能否修改这个文件储存的位置,比如我想把它剪切放到项目根目录的上一层目录,那么放到上一层目录之后,这个文件怎么像原来那样工作呢?

我是直接把 documentRoot 定义在public路径下的。这样也就满足了你说的.env文件在根目录的上一层了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template