How to fix - RuntimeException in Encrypter.php line 43

laravel-5.3, php

Solution

You only type in cmd:

php artisan key:generate

Problem

App.php - File This is my App,php file ``` 'key' => env('APP_KEY'), 'cipher' => 'AES-256-CBC', ``` .env - File This is my .env file ``` APP_ENV=local APP_KEY=base64:CETuLOZZZi5QEEYXhyCO/O7l7fhM6LI5clvsT59cgTM= APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=http://localhost DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=ads DB_USERNAME=root DB_PASSWORD=null PUSHER_APP_ID= PUSHER_KEY= PUSHER_SECRET= ``` Error was: ``` > RuntimeException in Encrypter.php line 43: The only supported ciphers > are AES-128-CBC and AES-256-CBC with the correct key lengths. ``` Developers please help me to solve this problems. Thanks

Original source

Related problems