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
/
..
/
Unit
/
..
/
..
/
app
/
Models
/
Offer.php
/
/
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Offer extends Model { use HasFactory; protected $appends = ['image_url','type_name','section_title']; protected $hidden = ['created_at','updated_at']; public function getImageUrlAttribute(){ if($this->image){ $image_url = asset('storage/'.$this->image); return $image_url; } return $this->image; } public function category(){ return $this->belongsTo(Category::class,'type_id','id')->select('id', 'name'); } public function product(){ return $this->belongsTo(Product::class,'type_id','id')->select('id', 'name', 'slug'); } public function section(){ return $this->belongsTo(Section::class,'section_position','id')->select('id', 'title'); } public function getTypeNameAttribute(){ $type_name = ''; if($this->type == 'category'){ $type_name = $this->category->name??""; }elseif($this->type == 'product'){ $type_name = $this->product->name??""; } return $type_name; } public function getSectionTitleAttribute(){ $section_title = ''; if($this->position == 'below_section'){ $section_title = $this->section->title??""; } return 'Below '.$section_title; } }
/home/users/unlimited/www/egrocer.codeskitter.site/tests/Unit/../Unit/../../app/Models/Offer.php