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

前端 未结 14 655
后悔当初
后悔当初 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条回答
  •  猫巷女王i
    2020-11-29 20:51

    Add "illuminate/html": "~5.0" to require section of your composer.json file. Just like this:

    ...
    "require": {
        ...
        "illuminate/html": "~5.0"
        ...
    },
    ...
    

    Then run composer install command. When composer install gets complete. run php artisan key:generate. You will get a message like this:

    Application key [get 32 char key] set successfully.
    

提交回复
热议问题