uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
ultimate-ai.codeskitter.site
/
app
/
Models
/
UserOrder.php
/
/
<?php namespace App\Models; use App\Helpers\Classes\MarketplaceHelper; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Throwable; class UserOrder extends Model { protected $guarded = []; protected $casts = [ 'payload' => 'array', ]; public function plan(): BelongsTo { return $this->belongsTo(Plan::class); } public function user(): BelongsTo { return $this->belongsTo(User::class); } protected static function booted(): void { static::created(static function ($model) { if ($model->plan && $model->plan['hidden'] && $model->plan['max_subscribe'] != -1 && $model->plan['max_subscribe'] != 0) { $model->plan['max_subscribe'] -= 1; $model->plan->save(); } if (MarketplaceHelper::isRegistered('xero')) { try { config([ 'xero.clientId' => setting('XERO_CLIENT_ID'), 'xero.clientSecret' => setting('XERO_CLIENT_SECRET'), 'xero.redirectUri' => setting('XERO_REDIRECT_URI'), 'xero.landingUri' => setting('XERO_LANDING_URL'), ]); $nowDate = date('Y-m-d'); $data = [ 'Type' => 'ACCREC', 'Contact' => [ 'ContactID' => $model->user->xero_account_id, ], 'Date' => $nowDate, 'DueDate' => $nowDate, 'LineAmountTypes' => 'Inclusive', 'LineItems' => [ [ 'Description' => $model->plan?->name, 'Quantity' => 1, 'UnitAmount' => $model->price, ], ], ]; $response = \Dcblogdev\Xero\Facades\Xero::invoices()->store($data); } catch (Throwable $e) { } } }); } }
/home/users/unlimited/www/ultimate-ai.codeskitter.site/app/Models/UserOrder.php