No supported encrypter found. The cipher and / or key length are invalid

production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in /var/www/ngLaHotel/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:29
// 复制 .env

gao@gao-VirtualBox:/var/www/ngLaHotel$ cp .env.example .env
// 生成 key

gao@gao-VirtualBox:/var/www/ngLaHotel$ php artisan key:generate
Application key [14jq1tVtOnOfWSTqTwwRznh9S5spHm2c] set successfully.

猜你喜欢

转载自gxl-ct001.iteye.com/blog/2257870