No Application Encryption Key Has Been Specified

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

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

    php artisan key:generate
    

    Then

    php artisan config:cache
    

    and Then

    If you're getting the same error after having key-value, then just copy the APP_KEY value from .env file and paste it to config/app.php with 'key' => 'YOUR KEY',

    and then again run

    php artisan config:cache
    

提交回复
热议问题