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. 這是因爲要配置config/app.php裏面的key的值,這裏使用的是配置文件.env中的配置。使用命令php artisan key:generate 會自動生成key,並且加入到.env文件中的
相關文章
相關標籤/搜索