No Application Encryption Key Has Been Specified

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

    From Encryption - Laravel - The PHP Framework For Web Artisans:

    "Before using Laravel's encrypter, you must set a key option in your config/app.php configuration file. You should use the php artisan key:generate command to generate this key"

    I found that using this complex internet query in google.com:

    "laravel add encrption key" (Yes, it worked even with the typo!)

提交回复
热议问题