laravel 4: key not being generated with artisan

后端 未结 7 2151
温柔的废话
温柔的废话 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:29

    Had the same problem ...

    1. Opened app.php
    2. Remove the entry that says 'YourSecretKey!!!'
    3. Ran 'php artisan key:generate'

    Showed me a key in the console, but nothing in app.php!

    Solution is ... unlike Laravel 3, don't delete the default YourSecretKey!!! in app.php, just run the command and it will work.

    Hope this helps.

    Bagwaa

提交回复
热议问题