No supported encrypter found. The cipher and / or key length are invalid.
2017-10-27 14:16
513 查看
配置完了Laravel之后,访问网站出现如下错误:
No supported encrypter found. The cipher and / or key length are invalid.
![](https://img-blog.csdn.net/20171027141348478?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvemhlemhlYmll/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
这是因为要配置config/app.php里面的key的值,这里使用的是配置文件.env中的配置。使用命令php artisan key:generate 会自动生成key,并且加入到.env文件中的APP_KEY的值的位置。
再次访问即可出现欢迎界面!
No supported encrypter found. The cipher and / or key length are invalid.
这是因为要配置config/app.php里面的key的值,这里使用的是配置文件.env中的配置。使用命令php artisan key:generate 会自动生成key,并且加入到.env文件中的APP_KEY的值的位置。
再次访问即可出现欢迎界面!
相关文章推荐
- 部署laravel报错:No supported encrypter found. The cipher and / or key length are invalid.
- No supported encrypter found. The cipher and / or key length are invalid.
- 使用lavarel5.1碰到No supported encrypter found. The cipher and / or key length are invalid.
- laravel No supported encrypter found. The cipher and / or key length are invalid.
- laravel No supported encrypter found. The cipher and / or key length are invalid
- No supported encrypter found. The cipher and / or key length are invalid.
- No supported encrypter found. The cipher and / or key length are invalid.
- Laravel No supported encrypter found. The cipher and / or key length are invalid
- laravel The cipher and / or key length are invalid
- 关于laravel中key的错误cipher and / or key length are invalid
- Laravel 出现"RuntimeException inEncrypter.php line 43: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths."问题的解决办法
- ERROR ITMS-90032 : "Invalid Image Path - No image found at the path referenced under key 'CFBundleIc
- The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
- 解决Invalid character found in the request target. The valid characters are defined in RFC 7230 and RF
- The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
- Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFile': 'Icon.png'
- iOS ERROR ITMS-90032 : "Invalid Image Path - No image found at the path referenced under key
- Invalid Image Path - No image found at the path referenced under key "CFBundleIconFile": Icon.png
- The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
- No valid signing identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.