Laravel .env essentials
Laravel reads APP_KEY, APP_ENV, APP_DEBUG and the DB_* settings from .env. Set APP_DEBUG=false in production.
About APP_KEY
The generated key uses the base64: format Laravel expects. You can also run php artisan key:generate. Changing the key invalidates existing encrypted data and sessions.
Frequently asked questions
Can I use this APP_KEY in production?
Yes, it is generated with the browser Web Crypto API, but generate a separate key per environment.
Should .env be committed?
No. Commit only .env.example.