Lumen Micro Framework => php artisan key:generate

后端 未结 12 852
遥遥无期
遥遥无期 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:15

    The APP_KEY generation is a step of development process (I don't think that creating temporarily routes is a practical way to do it). The function str_random can help us, but this function is part of Laravel/Lunmen framework. I recommend running tinker

    php artisan tinker

    and then run the function

    >>> str_random(32)

    The result is the key you're looking for.

    => "y3DLxnEczGWGN4CKUdk1S5GbMumU2dfH"

提交回复
热议问题