未指定应用程序加密密钥 [英] No Application Encryption Key Has Been Specified

查看:422
本文介绍了未指定应用程序加密密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Laravel的新手,我正在尝试使用Artisan命令...

I'm new to Laravel and I'm trying to use the Artisan command...

php artisan serve

它显示...

Laravel开发服务器已启动: http://127.0.0.1:8000

但是,它不会自动启动,当我手动输入 http://127.0.0.1:8000 它显示此错误:

However, it won't automatically launch and when I manually enter http://127.0.0.1:8000 it shows this error:

RuntimeException尚未指定应用程序加密密钥.

RuntimeException No application encryption key has been specified.

有什么想法吗?我正在使用Laravel Framework 5.5-dev.

Any ideas? I'm using Laravel framework 5.5-dev.

推荐答案

来自加密-Laravel-PHP框架对于网络工匠:

在使用Laravel的加密器之前,您必须在 config/app.php配置文件.您应该使用 php artisan key:generate命令生成此密钥"

"Before using Laravel's encrypter, you must set a key option in your config/app.php configuration file. You should use the php artisan key:generate command to generate this key"

我发现在google.com中使用此复杂的互联网查询:

I found that using this complex internet query in google.com:

"laravel添加加密密钥"(是的,即使输入错误也可以使用!)

"laravel add encrption key" (Yes, it worked even with the typo!)

这篇关于未指定应用程序加密密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆