Laravel 出现"RuntimeException inEncrypter.php line 43: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths."问题的解决办法

The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.

首先在cmd命令行下定位到项目所在的根目录下,接着输入:

  1. php artisan key:generate  

效果:

The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.

这时候项目根目录下的.env文件里的APP_KEY应该会有值了:

The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.

若没有,则将上一步生成的key值输入进去即可。

相关文章:

  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2018-05-25
  • 2021-12-18
  • 2022-12-23
  • 2021-12-01
  • 2022-02-04
猜你喜欢
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2021-05-24
  • 2022-01-16
  • 2021-05-21
  • 2021-12-12
相关资源
相似解决方案