Merge branch 'dillon/129-environment-variables' into vapor/development

This commit is contained in:
Dillon Ngo
2026-01-14 13:42:03 +08:00
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ SENDING_EMAIL_WELCOME_VOUCHER_ENABLED=false
E_INVOICE_START_DATE="2025-07-01 00:00:00"
MAINTENANCE_MESSAGE_TITLE="We'll be back online on 00:00 1/7/2025"
MAINTENANCE_MESSAGE_TITLE="" # default empty, e.g. We'll be back online on 00:00 1/7/2025
MAINTENANCE_MESSAGE="Sorry for the inconvenience but we're performing some maintenance at the moment."
OPENAI_API_KEY=""
@@ -84,8 +84,7 @@ class UserEmailVerificationLogic extends AbstractControllerLogic
$user = $attempt->user;
$this->verifiesUser->execute($user);
// if (env('SENDING_EMAIL_WELCOME_VOUCHER_ENABLED', false)){
if (app()->environment('production') && env('SENDING_EMAIL_WELCOME_VOUCHER_ENABLED', false)){
if (app()->environment('production') && env('SENDING_EMAIL_WELCOME_VOUCHER_ENABLED', true)){
try{ //In case voucher got deleted unintentionally
$voucher = $this->fetchesVoucher->execute(['code' => Vouchers::WELCOME_50_PERCENT_OFF]);
if($voucher) $this->sendWelcomeVoucherEmail::dispatch($user, $voucher, 1);
+2 -2
View File
@@ -3,6 +3,6 @@
return [
'application_id' => env('VOUCHERIFY_APPLICATION_ID', ''),
'client_secret_key' => env('VOUCHERIFY_CLIENT_SECRET_KEY', ''),
'version' => env('VOUCHERIFY_VERSION', ''),
'url' => env('VOUCHERIFY_URL', ''),
'version' => env('VOUCHERIFY_VERSION', 'v2018-08-01'),
'url' => env('VOUCHERIFY_URL', 'https://as1.api.voucherify.io'),
];