1.首先确保工程目录下有 .env 文件 2.工程目录下 cmd 窗口 执行 php artisan key:generate 3.php artisan cache:clear 4.php artisan config:clear 完工