uawdijnntqw1x1x1
IP : 216.73.217.77
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
/
egrocer.codeskitter.site
/
tests
/
Unit
/
..
/
..
/
assets
/
..
/
app
/
Models
/
Slider.php
/
/
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Slider extends Model { use HasFactory; protected $appends = ['type_name','image_url']; public function category(){ return $this->belongsTo(Category::class,'type_id','id'); } public function product(){ return $this->belongsTo(Product::class,'type_id','id'); } public function getTypeNameAttribute(){ $type_name = ''; if($this->type == 'category'){ $type_name = $this->category->name??""; }elseif($this->type == 'product'){ $type_name = $this->product->name??""; }elseif($this->type == 'offer_url'){ $type_name = $this->offer_url??""; } return $type_name; } public function getImageUrlAttribute(){ if($this->image){ $image_url = asset('storage/'.$this->image); return $image_url; } return $this->image; } protected $hidden = []; }
/home/users/unlimited/www/egrocer.codeskitter.site/tests/Unit/../../assets/../app/Models/Slider.php