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

Laravel5.2常见错误及几觉

WBOY
Release: 2016-06-20 12:31:13
Original
1094 people have browsed it

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值

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template