Basic Usage

Table of Contents

Everything is done via the app-key-rotator:rotate artisan command. When the command is run, it'll modify your .env file and add OLD_APP_KEY=your-old-app-key to it. If something goes wrong with your app key rotation, you can always revert to your old app key from your .env file. This is also used in case decryption fails with the new app key; it'll try to decrypt values with the previous app key.

See this for more information:

php artisan app-key-rotator:rotate

{tip} You should probably make a backup of your .env file before running this command and rotating your app key.

Caught a mistake? Suggest an edit on GitHub