2017-06-18 52 views
0

我安裝了Laravel並將其上傳到git 現在我下載了它 但是當我嘗試進入該網站我得到這個錯誤:Laravel:唯一支持的密碼是AES-128-CBC和AES-256-CBC,密鑰長度正確

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. laravel 5.3

config/app.php

'key' => env('APP_KEY'), 

'cipher' => env('APP_KEY'), 

我跑

php artisan key:generate 

ENV文件:

APP_KEY=base64:zJQUL0Kuwhb2JL6L7IJ+1UO7IUSQSw2Td40F9LNABfE= 

我跑composer update

,但仍是同樣的錯誤...... 我試圖清除配置和緩存,但沒有幫助。

我還能做什麼?

回答

2

您的config/app.php文件有誤,請將密碼條目更改爲'cipher' => 'AES-256-CBC'。你有密鑰和密碼都指向相同的.env變量。

+0

仍然沒有工作.. –

+0

對不起我的壞,我nedded清除chache –

相關問題