Laravel 5.4 : The only supported ciphers are AES-1

2019-02-14 06:19发布

问题:

It is Laravel 5.4 setup of my web app. one thing is happening repeatedly on page load. and because of that, I am not able to get data on my page.

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

Got this error repeatedly

I would be thankful for any help.

回答1:

I think you should try this

run this command

php artisan key:generate

and the clear config cache using

php artisan config:cache


回答2:

Make sure your app config has key and cipher set. Also make sure your .env file does not have an empty APP_KEY entry. Finally run:

php artisan key:generate


回答3:

Make sure to set APP_Key in .env file and then run following command in the terminal of your application root.

php artisan key:generate


回答4:

i was getting the same error.

run this command.

php artisan key:generate

updated the app key in .env

work for me

you can take help from link