No Application Encryption Key Has Been Specified

前端 未结 20 1747
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-30 17:11

I\'m new to Laravel and I\'m trying to use the Artisan command...

php artisan serve

It displays...

Laravel developme

20条回答
  •  攒了一身酷
    2020-11-30 17:41

    Open command prompt in the root folder of your project and run below command:

    php artisan key:generate
    

    It will generate Application Key for your application.

    You can find the generated application key(APP_KEY) in .env file.

提交回复
热议问题