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
/
..
/
..
/
tests
/
..
/
app
/
Models
/
Product.php
/
/
<?php namespace App\Models; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Product extends Model { //use HasFactory,SoftDeletes; use HasFactory; protected $fillable = [ 'name', 'category_id', 'indicator', 'manufacturer', 'made_in', 'return_status', 'cancelable_status', 'till_status', 'description', 'image', 'seller_id', 'is_approved', 'brand_id', 'return_days', 'tax_id', 'fssai_lic_no', 'barcode', ]; protected $appends = ['image_url']; protected $hidden=['created_at','updated_at','deleted_at']; public function seller(){ return $this->belongsTo(Seller::class,'seller_id','id'); } public function tax(){ return $this->belongsTo(Tax::class,'tax_id','id'); } public function madeInCountry(){ return $this->belongsTo(Country::class,'made_in','id'); } public function category(){ return $this->belongsTo(Category::class,'category_id','id'); } public function variants(){ return $this->hasMany(ProductVariant::class,'product_id','id'); } public function images(){ return $this->hasMany(ProductImages::class,'product_id','id') ->where('product_variant_id',0); } public function brand(){ return $this->belongsTo(Brand::class,'brand_id','id'); } public function getImageUrlAttribute(){ if($this->image){ $image_url = asset('storage/'.$this->image); }else{ $image_url = ''; } return $image_url; } public function ratings() { return $this->hasMany(ProductRating::class, 'product_id'); } public function tags() { return $this->belongsToMany(Tag::class, 'product_tag'); } }
/home/users/unlimited/www/egrocer.codeskitter.site/tests/Unit/../../tests/../app/Models/Product.php