laravel 4: key not being generated with artisan

后端 未结 7 2153
温柔的废话
温柔的废话 2020-12-15 05:39

When running

php artisan key:generate

I can see the generated key in my shell, but the variable \'key\' in app.php remains empt

相关标签:
7条回答
  • 2020-12-15 06:41

    The .env file needs to contain a line like this:

    APP_KEY=
    

    You don't have to specify a key, but you have to at least provide a .env file and also the above line.

    0 讨论(0)
提交回复
热议问题