2

I have a Laravel application. I have tested the application on my test server. Now I want to have that on my production servers. My question is do I need to generate APP_KEY for each production server? by doing a php artisan key:generate each time I upload to a new server? or can I use the same one I already have in my .env file?

Ranga Lakshitha
  • 286
  • 2
  • 14

1 Answers1

0

The .env file is not committed when we change our server you have to copy the example.env file to .env file and then apply the command

php artisan key:generate

i hope its will work :)