简体   繁体   English

我在Windows 10上找不到.env文件Laravel

[英]I can't find .env file Laravel on Windows 10

I'm using Laravel for the first time. 我第一次使用Laravel。 I have to run this command: "php artisan key:generate" but i get this: 我必须运行以下命令:“ php artisan key:generate”,但是我得到了:

 [ErrorException]

file_get_contents(C:\\xampp\\htdocs\\laravel/.env): failed to open stream: No such file or directory file_get_contents(C:\\ xampp \\ htdocs \\ laravel / .env):无法打开流:没有此类文件或目录

I have no ".env" file or ".example.env". 我没有“ .env”文件或“ .example.env”。 What's wrong? 怎么了? Thanks. 谢谢。

You can always generate .env file manually by running: 您始终可以通过运行以下命令手动生成.env文件:

cp .env.example .env
php artisan key:generate

Must be Turns out the IDE will show certain types of .hidden files but not all 必须为事实,IDE将显示某些类型的.hidden文件,但不是全部

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM