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
/
egrocer.codeskitter.site
/
app
/
Models
/
Seller.php
/
/
<?php namespace App\Models; //use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Seller extends Model { use HasFactory; protected $hidden = []; protected $appends = ['logo_url','national_identity_card_url','address_proof_url','categories_array']; public static $statusRegistered = 0; public static $statusActive = 1; public static $statusRejected = 2; public static $statusDeactivated = 3; public static $statusRemoved = 7; public static $Registered = "Registered"; public static $Active = "Active"; public static $Rejected = "Rejected"; public static $Deactivated = "Deactivated"; public static $Removed = "Removed"; public function getLogoUrlAttribute(){ if($this->logo){ $logo_url = asset('storage/'.$this->logo); return $logo_url; } return $this->logo; } public function getNationalIdentityCardUrlAttribute(){ if($this->national_identity_card){ $national_identity_card_url = asset('storage/'.$this->national_identity_card); return $national_identity_card_url; } return $this->national_identity_card; } public function getAddressProofUrlAttribute(){ if($this->address_proof){ $address_proof_url = asset('storage/'.$this->address_proof); return $address_proof_url; } return $this->address_proof; } public function admin(){ return $this->belongsTo(Admin::class,'admin_id','id'); } public function city(){ return $this->belongsTo(City::class,'city_id','id'); } public function categories() { return $this->belongsToMany(Category::class, 'sellers', 'id', 'categories'); } public function getCategoriesArrayAttribute() { $categoriesArray = is_string($this->categories) ? explode(',', $this->categories): []; $categoriesCollection = collect($categoriesArray); $categoryNames = Category::whereIn('id', $categoriesCollection)->pluck('name')->toArray(); $commaSeparatedNames = implode(', ', $categoryNames); return $commaSeparatedNames; } }
/home/users/unlimited/www/egrocer.codeskitter.site/app/Models/Seller.php