laravel 4:工匠无法生成密钥 [英] laravel 4: key not being generated with artisan
本文介绍了laravel 4:工匠无法生成密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
运行时
php artisan key:generate
php artisan key:generate
我可以在外壳程序中看到生成的密钥,但是app.php中的变量'key'仍然为空.
I can see the generated key in my shell, but the variable 'key' in app.php remains empty.
使用Windows-apache-php 5.4-mysql在localhost上运行.
Running on localhost with windows-apache-php 5.4 - mysql.
laravel 4 beta版以前从未遇到过此问题.
Never had this problem before with laravel 4 beta version.
推荐答案
有同样的问题...
- 打开了app.php
- 删除标有"YourSecretKey !!!"的条目
- Ran'php artisan key:generate'
- Opened app.php
- Remove the entry that says 'YourSecretKey!!!'
- Ran 'php artisan key:generate'
在控制台中显示了一个键,但是在app.php
中什么都没有显示!
Showed me a key in the console, but nothing in app.php
!
解决方案是...与Laravel 3不同,请不要删除默认的YourSecretKey
!!!在app.php
中,只需运行命令即可.
Solution is ... unlike Laravel 3, don't delete the default YourSecretKey
!!! in app.php
, just run the command and it will work.
希望这会有所帮助.
Bagwaa
这篇关于laravel 4:工匠无法生成密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文