Lumen Micro Framework => php artisan key:generate

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

    I have used these commands:

    php -r \"copy('.env.example', '.env');\"
    
    php -r "echo password_hash(uniqid(), PASSWORD_BCRYPT).\"\n\";"
    

    The command generates a key similar to this:

    $2y$10$jb3kw/vUANyzZ4ncMa4rwuR09qldQ2OjX8PGrVB5dIlSnUAPCGjFe

提交回复
热议问题