diff --git a/app/Classes/Modules/Accounts/ControllersLogic/CreateCustomerLogic.php b/app/Classes/Modules/Accounts/ControllersLogic/CreateCustomerLogic.php index 1bef636c..5b998ad1 100644 --- a/app/Classes/Modules/Accounts/ControllersLogic/CreateCustomerLogic.php +++ b/app/Classes/Modules/Accounts/ControllersLogic/CreateCustomerLogic.php @@ -3,7 +3,7 @@ namespace App\Classes\Modules\Accounts\ControllersLogic; use App\Classes\General\Abstracts\AbstractControllerLogic; - +use App\Classes\General\LogHelper; use App\Classes\General\Services\GeneratesInitials; use App\Classes\Modules\Accounts\Processors\AuthenticationProcessor; use App\Classes\Modules\Accounts\Processors\CreateUserProcessor; @@ -190,7 +190,7 @@ class CreateCustomerLogic extends AbstractControllerLogic 'portal' => 'izyim' ]; $response = Http::post($url, $payload); - Log::channel('wac_webhook')->info('Register Account: ' . json_encode($response)); + LogHelper::channel('wac_webhook')->info('Register Account: ' . json_encode($response)); } // $this->generateEmailVerificationAttemptProcessor->execute($user); @@ -202,7 +202,7 @@ class CreateCustomerLogic extends AbstractControllerLogic // register account on exchange portal if this registration not coming from exchange $exchangeCompanyId = $this->registerOnExchangeProcessor->execute($request, $companyModule->id); } - + if ($exchangeCompanyId) { // create exchange company connection $this->connectCompanyModuleToExchangeCompany->execute($companyModule, $exchangeCompanyId); diff --git a/app/Classes/Modules/Transactions/Processors/CreateInvoiceTransactionProcessor.php b/app/Classes/Modules/Transactions/Processors/CreateInvoiceTransactionProcessor.php index b7cda5f0..5663294a 100644 --- a/app/Classes/Modules/Transactions/Processors/CreateInvoiceTransactionProcessor.php +++ b/app/Classes/Modules/Transactions/Processors/CreateInvoiceTransactionProcessor.php @@ -85,7 +85,7 @@ class CreateInvoiceTransactionProcessor ->exists(); if ($hasInvoiceCreated) { - Log::channel('wac_webhook')->info('Regenerating Invoice for PackingList: ' . $ori_packing_list->id . '. No call wac api.'); + LogHelper::channel('wac_webhook')->info('Regenerating Invoice for PackingList: ' . $ori_packing_list->id . '. No call wac api.'); } $packing_list = PackingList::where('reference', $packingList->reference)->where('type', PackingListType::SHIPPING_PACKING_LIST)->first(); @@ -286,9 +286,9 @@ class CreateInvoiceTransactionProcessor 'invoice_count' => $invoiceCount, ]; - Log::channel('wac_webhook')->info('Attempt to send wac_webhook - Invoice Created: ' . json_encode($payload)); + LogHelper::channel('wac_webhook')->info('Attempt to send wac_webhook - Invoice Created: ' . json_encode($payload)); $response = Http::post(config('wagWebhookUrl.invoice_created_url'), $payload); - Log::channel('wac_webhook')->info('Invoice Created: ' . json_encode($response)); + LogHelper::channel('wac_webhook')->info('Invoice Created: ' . json_encode($response)); } return; diff --git a/app/Classes/Modules/Wac/ControllersLogic/RegisterExchangeEmailLogic.php b/app/Classes/Modules/Wac/ControllersLogic/RegisterExchangeEmailLogic.php index 46b4552e..f807e095 100644 --- a/app/Classes/Modules/Wac/ControllersLogic/RegisterExchangeEmailLogic.php +++ b/app/Classes/Modules/Wac/ControllersLogic/RegisterExchangeEmailLogic.php @@ -4,6 +4,7 @@ namespace App\Classes\Modules\Wac\ControllersLogic; use App\Classes\Exceptions\RequestValidationException; use App\Classes\General\Abstracts\AbstractControllerLogic; +use App\Classes\General\LogHelper; use App\Classes\Modules\Accounts\DataTransferObjects\RegistrationObject; use App\Classes\Modules\Companies\DataTransferObjects\EmploymentObject; use App\Classes\Modules\HelpMenu\Standards\Rules\CanFetchHelpMenuQuestion; @@ -24,7 +25,7 @@ use App\Classes\ValueObjects\Constants\RoleTypes; class RegisterExchangeEmailLogic extends AbstractControllerLogic { - /** + /** * @return array */ protected function notification(): array @@ -110,7 +111,7 @@ class RegisterExchangeEmailLogic extends AbstractControllerLogic $newUser->status = ApprovalStatus::APPROVED; $newUser->save(); - Log::channel('wac_webhook')->info('Wac created user: ' . $exchangeEmail); + LogHelper::channel('wac_webhook')->info('Wac created user: ' . $exchangeEmail); $companyModule = $izyimUser->companyModule->first(); $Object = new EmploymentObject($companyModule, $newUser);