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

If you see this error you are missing APP_KEY.
Make sure you have .env in your main directory.

If you don’t have it one yet, create it.

root@vmware:/srv/www/laravel/public_html# > .env

Generate key

root@vmware:/srv/www/laravel/public_html# php artisan key:generate
Application key [base64:i7QndWbN33zY1x013Yw2cju9KQsxpT/1nnf8/3ziZ+U=] set successfully.

And now just add it into your .env file, clear cache and you are good to go

root@vmware:/srv/www/laravel/public_html# cat .env

root@vmware:/srv/www/laravel/public_html# php artisan cache:clear
Cache cleared successfully.

Write a Comment


  1. I thought you would like to know, it looks like you’ve misspelled the word “offically” on your website. Silly mistakes can ruin your site’s credibility. In the past I’ve used a tool like to keep mistakes off my website.

    -Scott Matthews Sr.