Explorar o código

fix: 🚑️ Fixed Config Variable Name

IceToast %!s(int64=3) %!d(string=hai) anos
pai
achega
8e739ccf74
Modificáronse 1 ficheiros con 8 adicións e 8 borrados
  1. 8 8
      app/Http/Controllers/Admin/PaymentController.php

+ 8 - 8
app/Http/Controllers/Admin/PaymentController.php

@@ -197,8 +197,8 @@ class PaymentController extends Controller
 
 
                 event(new UserUpdateCreditsEvent($user));
                 event(new UserUpdateCreditsEvent($user));
 
 
-                //only create invoice if SETTINGS::INVOICE:ENABLE is true
-                if (config('SETTINGS::INVOICE:ENABLE') == 'true') {
+                //only create invoice if SETTINGS::INVOICE:ENABLED is true
+                if (config('SETTINGS::INVOICE:ENABLED') == 'true') {
                     $this->createInvoice($user, $payment, 'paid');
                     $this->createInvoice($user, $payment, 'paid');
                 }
                 }
 
 
@@ -340,8 +340,8 @@ class PaymentController extends Controller
 
 
                 event(new UserUpdateCreditsEvent($user));
                 event(new UserUpdateCreditsEvent($user));
 
 
-                //only create invoice if SETTINGS::INVOICE:ENABLE is true
-                if (config('SETTINGS::INVOICE:ENABLE') == 'true') {
+                //only create invoice if SETTINGS::INVOICE:ENABLED is true
+                if (config('SETTINGS::INVOICE:ENABLED') == 'true') {
                     $this->createInvoice($user, $payment, 'paid');
                     $this->createInvoice($user, $payment, 'paid');
                 }
                 }
 
 
@@ -366,8 +366,8 @@ class PaymentController extends Controller
                         'credit_product_id' => $creditProduct->id,
                         'credit_product_id' => $creditProduct->id,
                     ]);
                     ]);
 
 
-                    //only create invoice if SETTINGS::INVOICE:ENABLE is true
-                    if (config('SETTINGS::INVOICE:ENABLE') == 'true') {
+                    //only create invoice if SETTINGS::INVOICE:ENABLED is true
+                    if (config('SETTINGS::INVOICE:ENABLED') == 'true') {
                         $this->createInvoice($user, $payment, 'paid');
                         $this->createInvoice($user, $payment, 'paid');
                     }
                     }
 
 
@@ -426,8 +426,8 @@ class PaymentController extends Controller
                 $user->notify(new ConfirmPaymentNotification($payment));
                 $user->notify(new ConfirmPaymentNotification($payment));
                 event(new UserUpdateCreditsEvent($user));
                 event(new UserUpdateCreditsEvent($user));
 
 
-                //only create invoice if SETTINGS::INVOICE:ENABLE is true
-                if (config('SETTINGS::INVOICE:ENABLE') == 'true') {
+                //only create invoice if SETTINGS::INVOICE:ENABLED is true
+                if (config('SETTINGS::INVOICE:ENABLED') == 'true') {
                     $this->createInvoice($user, $payment, 'paid');
                     $this->createInvoice($user, $payment, 'paid');
                 }
                 }
             }
             }