Laravel No application encryption key has been specified

在自己的项目文件夹下执行下面命令

php artisan key:generate
Application key [base64:2JGooYbWIAWiUbCPmwiIQ+v9YiJOwKYGV1gbKv5tOSQ=] set successfully.
You have new mail in /var/mail/yshuq

生成的key,,会自动填充到 .env文件里面去,如下代码:

APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:2JGooYbWIAWiUbCPmwiIQ+v9YiJOwKYGV1gbKv5tOSQ=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost