Lumen Micro Framework => php artisan key:generate

后端 未结 12 843
遥遥无期
遥遥无期 2021-01-30 00:59

I\'m trying out the PHP micro Framework Lumen (from Laravel).

One of my first steps was to look into the .env.example file and make a copy of it to have my

12条回答
  •  长发绾君心
    2021-01-30 01:18

    Simply use PHP CLI. Run this from your local or a remote command line to generate a random 32-character Lumen APP_KEY:

    php -r "echo bin2hex(random_bytes(16));"
    

    Output: bae48aba23b3e4395b7f1b484dd25192

    Works with PHP 7.x on Mac and Windows.

提交回复
热议问题