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