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.priyotama.com
/
app
/
Models
/
Refund.php
/
/
<?php namespace App\Models; use App\CentralLogics\Helpers; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\MorphOne; use Illuminate\Support\Facades\DB; class Refund extends Model { use HasFactory; protected $guarded = ['id']; protected $casts = [ 'refund_amount' => 'float', 'order_id' => 'integer', 'user_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; protected $appends = ['image_full_url']; public function order() { return $this->belongsTo(Order::class); } public function getImageFullUrlAttribute(){ $images = []; $value = is_array($this->image) ? $this->image : ($this->image && is_string($this->image) && $this->isValidJson($this->image) ? json_decode($this->image, true) : []); if ($value){ foreach ($value as $item){ $item = is_array($item)?$item:(is_object($item) && get_class($item) == 'stdClass' ? json_decode(json_encode($item), true):['img' => $item, 'storage' => 'public']); $images[] = Helpers::get_full_url('refund',$item['img'],$item['storage']); } } return $images; } private function isValidJson($string) { json_decode($string); return (json_last_error() === JSON_ERROR_NONE); } public function storage() { return $this->morphMany(Storage::class, 'data'); } protected static function booted() { static::addGlobalScope('storage', function ($builder) { $builder->with('storage'); }); } protected static function boot() { parent::boot(); } }
/home/users/unlimited/www/admin.priyotama.com/app/Models/Refund.php