Skip to content

Instantly share code, notes, and snippets.

@jaygaha
Last active February 3, 2022 07:31
Show Gist options
  • Save jaygaha/22afd0c965382515203cdc274b86cbac to your computer and use it in GitHub Desktop.
Save jaygaha/22afd0c965382515203cdc274b86cbac to your computer and use it in GitHub Desktop.
Lumen APP Key generation

Generate APP KEY value for Lumen project

Run following command in console:

sed -i "s|\(APP_KEY=\)\(.*\)|\1$(openssl rand -base64 24)|" .env

This will update .env file with something like APP_KEY=foobar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment