No Application Encryption Key Has Been Specified

前端 未结 20 1750
爱一瞬间的悲伤
爱一瞬间的悲伤 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:39

    You can generate Application Encryption Key using this command:

    php artisan key:generate
    

    Then, create a cache file for faster configuration loading using this command:

    php artisan config:cache
    

    Or, serve the application on the PHP development server using this command:

    php artisan serve
    

    That's it!

提交回复
热议问题