laravel框架下如果出现No supported encrypter found. The cipher and / or key length are invalid.的错误,请进行如下的检查。
(1)检查.env文件
检查.env文件内有没有 APP_KEY=jP************WqIqeTb这一行,并执行php artisan key:generate刷新
(2)检查config/app.php文件
检查config/app.php文件有没有
'key' => env('APP_KEY', 'SomeRandomString'), 'cipher' => 'AES-128-CBC',
第一行的意思是设置key,