Laravel project. by default, an env file is stored in the root directory of the project. Can you modify the storage location of this file? for example, if you want to cut it to the top Directory of the root directory of the project, put it to the top directory, how does this file work like it used? Laravel project. by default, an env file is stored in the root directory of the project. Can you modify the storage location of this file? for example, if you want to cut it to the top Directory of the root directory of the project, put it to the top directory, how does this file work like it used?
Reply content:
Laravel project. by default, an env file is stored in the root directory of the project. Can you modify the storage location of this file? for example, if you want to cut it to the top Directory of the root directory of the project, put it to the top directory, how does this file work like it used?
I directly defined documentRoot in the public path. This satisfies the requirement that the. env file is located at the top of the root directory.