laravel 4:没有用工匠生成密钥 [英] laravel 4: key not being generated with artisan

查看:21
本文介绍了laravel 4:没有用工匠生成密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行时

<块引用>

php 工匠密钥:生成

我可以在我的 shell 中看到生成的密钥,但 app.php 中的变量 'key' 仍然为空.

使用 windows-apache-php 5.4 - mysql 在本地主机上运行.

在使用 laravel 4 beta 版本之前从未遇到过这个问题.

解决方案

遇到了同样的问题...

<块引用>

  1. 打开app.php
  2. 删除YourSecretKey!!!"条目
  3. 运行 'php artisan key:generate'

在控制台中显示了一个键,但在 app.php 中什么都没有!

解决办法是……不像Laravel 3,不要删除默认的YourSecretKey!!!在 app.php 中,只需运行命令即可.

希望这会有所帮助.

巴格瓦

When running

php artisan key:generate

I can see the generated key in my shell, but the variable 'key' in app.php remains empty.

Running on localhost with windows-apache-php 5.4 - mysql.

Never had this problem before with laravel 4 beta version.

解决方案

Had the same problem ...

  1. Opened app.php
  2. Remove the entry that says 'YourSecretKey!!!'
  3. Ran 'php artisan key:generate'

Showed me a key in the console, but nothing in app.php!

Solution is ... unlike Laravel 3, don't delete the default YourSecretKey!!! in app.php, just run the command and it will work.

Hope this helps.

Bagwaa

这篇关于laravel 4:没有用工匠生成密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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