Home >Backend Development >PHP Tutorial >Laravel5.2常见错误及几觉

Laravel5.2常见错误及几觉

WBOY
WBOYOriginal
2016-06-20 12:31:131095browse

RuntimeException in EncryptionServiceProvider.php line 31:

No supported encrypter found. The cipher and / or key length are invalid.

解决办法 

在终端中执行:
php artisan key:generate
将生成的key复制到config/app.php替换APP_KEY键值

类似
'key' => env('APP_KEY','C0KtmxaHrPBIvh8SJYWZ58UtJBQ'),

或者直接修改.env文件中的APP_KEY值

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn