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
/
.
/
sigmaerp.codeskitter.site
/
tests
/
..
/
tests
/
..
/
app
/
Models
/
Tax.php
/
/
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Support\Facades\Cache; use App\Models\Service; use App\Models\Items\ItemTransaction; class Tax extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array<int, string> */ protected $fillable = [ 'name', 'rate', 'status', ]; /** * Insert & update User Id's * */ protected static function boot() { parent::boot(); /** * creating * updating * */ static::creating(function ($model) { $model->created_by = auth()->id(); $model->updated_by = auth()->id(); }); static::updating(function ($model) { $model->updated_by = auth()->id(); }); /** * created * updated * cache created in App\Services\CacheService.php * */ static::created(function ($tax) { Cache::forget('tax'); }); static::updated(function ($tax) { Cache::forget('tax'); }); static::deleted(function ($tax) { Cache::forget('tax'); }); } public function service() : HasMany { return $this->hasMany(Service::class); } /*public function itemTransaction() : HasMany { return $this->hasMany(ItemTransactione::class); }*/ public function orderedProducts(): HasMany { return $this->hasMany(OrderedProduct::class, 'tax_id'); } /** * Define the relationship between Order and User. * * @return BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(User::class, 'created_by'); } }
/home/users/unlimited/www/./sigmaerp.codeskitter.site/tests/../tests/../app/Models/Tax.php