ERROR: No application Encryption key has been specified

Asked

Viewed 1,024 times

2

3 answers

2

There is the file .env in the project? If it exists, there is in it the variable APP_KEY?

What do I command php artisan key:generate makes is generate a random key for the variable APP_KEY.

If the command php artisan serve is running, you will need to restart the server.

  • Can someone help me with this?

1

Try

php artisan key:generate
php artisan config:cache
php artisan cache:clear
  • Good afternoon, the error occurs when I just run php Artisan key:generate , then no command works.

-2

You have to install or update the commiserate before:

composer install

or

composer update

Browser other questions tagged

You are not signed in. Login or sign up in order to post.