Home >Backend Development >PHP Tutorial >Laravel5.2常见错误及几觉
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值