uawdijnntqw1x1x1
IP : 216.73.216.145
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.brosiper.codeskitter.site
/
tests
/
..
/
app
/
Models
/
VendorEmployee.php
/
/
<?php namespace App\Models; use App\CentralLogics\Helpers; use Illuminate\Database\Eloquent\Relations\MorphOne; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Illuminate\Support\Facades\DB; class VendorEmployee extends Authenticatable { use Notifiable; protected $fillable = ['remember_token']; protected $casts = [ 'employee_role_id' => 'integer', 'vendor_id' => 'integer', 'store_id' => 'integer', // 'status' => 'integer', 'is_logged_in' => 'boolean', ]; protected $hidden = [ 'password', 'auth_token', 'remember_token', ]; protected $appends = ['image_full_url']; public function getImageFullUrlAttribute(){ $value = $this->image; if (count($this->storage) > 0) { foreach ($this->storage as $storage) { if ($storage['key'] == 'image') { return Helpers::get_full_url('vendor',$value,$storage['value']); } } } return Helpers::get_full_url('vendor',$value,'public'); } public function store() { return $this->belongsTo(Store::class); } public function vendor() { return $this->belongsTo(Vendor::class); } public function role(){ return $this->belongsTo(EmployeeRole::class,'employee_role_id'); } 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(); static::saved(function ($model) { if($model->isDirty('image')){ $value = Helpers::getDisk(); DB::table('storages')->updateOrInsert([ 'data_type' => get_class($model), 'data_id' => $model->id, 'key' => 'image', ], [ 'value' => $value, 'created_at' => now(), 'updated_at' => now(), ]); } }); } }
/home/users/unlimited/www/admin.brosiper.codeskitter.site/tests/../app/Models/VendorEmployee.php