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

前端 未结 14 641
后悔当初
后悔当初 2020-11-29 19:58

I am building a project using Laravel. It was working fine on localhost, but when I upload it to the server (the server has comodo ssl installed), I receive the following er

14条回答
  •  庸人自扰
    2020-11-29 20:37

    Do you have all the necessary extensions installed on the server?

    • PHP >= 5.5.9
    • OpenSSL PHP Extension
    • PDO PHP Extension
    • Mbstring PHP Extension
    • Tokenizer PHP Extension

    It could be that you're missing the OpenSSL extension. Also, do you have the key set in .env file?


    Try running:

    php artisan key:generate


    Answer: the 'cipher' => '' was not set.

提交回复
热议问题