⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.229
Server IP:
95.217.99.93
Server:
Linux sv1.sonichosted.com 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
lifestylescentra
/
public_html
/
app
/
Traits
/
View File Name :
PaymentInformationTrait.php
<?php namespace App\Traits; use Illuminate\Support\Facades\Cache; use Modules\BasicPayment\app\Models\BasicPayment; use Modules\PaymentGateway\app\Models\PaymentGateway; trait PaymentInformationTrait { private function put_payment_cache() { $payment_info = PaymentGateway::get(); $payment_setting = []; foreach ($payment_info as $payment_item) { $payment_setting[$payment_item->key] = $payment_item->value; } $payment_setting = (object) $payment_setting; Cache::put('payment_setting', $payment_setting); } public function put_basic_payment_cache() { $payment_setting = []; $payment_info = BasicPayment::get(); foreach ($payment_info as $payment_item) { $payment_setting[$payment_item->key] = $payment_item->value; } $payment_setting = (object) $payment_setting; Cache::put('basic_payment', $payment_setting); } }