From 76b44e2e6a48bea27ee58be928195ad36bc9c1da Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 12 Dec 2024 11:06:00 +0100 Subject: [PATCH] feat: add new password magic env with symbols --- bootstrap/helpers/shared.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index ea051c84e..7aa411cd1 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -824,6 +824,12 @@ function generateEnvValue(string $command, Service|Application|null $service = n case 'PASSWORD_64': $generatedValue = Str::password(length: 64, symbols: false); break; + case 'PASSWORDWITHSYMBOLS': + $generatedValue = Str::password(symbols: true); + break; + case 'PASSWORDWITHSYMBOLS_64': + $generatedValue = Str::password(length: 64, symbols: true); + break; // This is not base64, it's just a random string case 'BASE64_64': $generatedValue = Str::random(64);