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
/
admin.brosiper.codeskitter.site
/
.
/
app
/
Models
/
AccountTransaction.php
/
/
<?php namespace App\Models; use App\Models\Store; use App\Models\DeliveryMan; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasOne; use Illuminate\Database\Eloquent\Factories\HasFactory; class AccountTransaction extends Model { use HasFactory; protected $casts = [ 'amount' => 'float', 'current_balance' => 'float', 'created_at' => 'datetime', 'updated_at' => 'datetime' ]; // public function getStoreAttribute() // { // if($this->from_type == 'store'){ // return Store::find($this->from_id); // } // return null; // } // public function getDeliverymanAttribute() // { // if($this->from_type == 'deliveryman'){ // return DeliveryMan::find($this->from_id); // } // return null; // } public function store() { if ($this->from_type == 'store') { return $this->belongsTo(Store::class,'from_id','vendor_id'); } return $this->belongsTo(Store::class)->whereNull('id'); } public function deliveryman() { if ($this->from_type == 'deliveryman') { return $this->belongsTo(DeliveryMan::class,'from_id','id'); } return $this->belongsTo(DeliveryMan::class)->whereNull('id'); } }
/home/users/unlimited/www/admin.brosiper.codeskitter.site/./app/Models/AccountTransaction.php