Generate the Laravel APP_KEY of Input during the installation

Laravel accepts a 32-character key, which token-hex with 16 bytes provides, so the installation no longer asks the user to create one with openssl.
This commit is contained in:
MacRimi
2026-10-26 18:15:01 +01:00
parent 92c6a000b5
commit a640993b94
2 changed files with 18 additions and 6 deletions
+9 -3
View File
@@ -74,8 +74,7 @@
"example": "",
"required": true,
"sensitive": true,
"source": "upstream-documentation",
"prompt": "APP_KEY: use the upstream command openssl rand -base64 32 and prefix its output with base64:"
"source": "upstream-documentation"
}
],
"volumes": [
@@ -416,7 +415,14 @@
"owner_strategy": "image-user",
"mode": "0755"
}
]
],
"generated_sensitive_environment": {
"APP_KEY": {
"strategy": "token-hex",
"bytes": 16,
"prompt": false
}
}
}
},
"compatibility": {
+9 -3
View File
@@ -74,8 +74,7 @@
"example": "",
"required": true,
"sensitive": true,
"source": "upstream-documentation",
"prompt": "APP_KEY: use the upstream command openssl rand -base64 32 and prefix its output with base64:"
"source": "upstream-documentation"
}
],
"volumes": [
@@ -416,7 +415,14 @@
"owner_strategy": "image-user",
"mode": "0755"
}
]
],
"generated_sensitive_environment": {
"APP_KEY": {
"strategy": "token-hex",
"bytes": 16,
"prompt": false
}
}
}
},
"compatibility": {