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


Laravel 出現"RuntimeException inEncrypter.php line 43: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths."問題的解決辦法
首先在cmd命令行下定位到項目所在的根目錄下,接着輸入:

php artisan key:generate

效果:

 

 這時候項目根目錄下的.env文件里的APP_KEY應該會有值了:

 

 若沒有,則將上一步生成的key值輸入進去即可。

 

 

 

 

 

 

 

 

 

采摘自:https://blog.csdn.net/u013049553/article/details/52608353


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM