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
/
database
/
..
/
tests
/
..
/
app
/
Models
/
Order.php
/
/
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\HasOne; use Illuminate\Database\Eloquent\Model; use App\Models\OrderedProduct; use App\Models\OrderPayment; use App\Models\Customer; use App\Models\Party\Party; use App\Models\User; use App\Traits\FormatsDateInputs; // Import your trait class Order extends Model { use HasFactory; use FormatsDateInputs; /** * The attributes that are mass assignable. * * @var array<int, string> */ protected $fillable = [ 'party_id', 'order_date', 'prefix_code', 'count_id', 'order_code', 'order_status', 'total_amount', 'note', 'status', ]; /** * This method calling the Trait FormatsDateInputs * @return null or string * */ public function getFormattedOrderDateAttribute() { return $this->toUserDateFormat($this->order_date); // Call the trait method } /** * Insert & update User Id's * */ protected static function boot() { parent::boot(); static::creating(function ($model) { $model->created_by = auth()->id(); $model->updated_by = auth()->id(); }); static::updating(function ($model) { $model->updated_by = auth()->id(); }); } /** * Relationship with Services * * @return hasMany */ public function orderedProducts(): HasMany { return $this->hasMany(OrderedProduct::class); } /** * Relationship with Order Payments * * @return hasMany */ public function payment(): HasMany { return $this->hasMany(OrderPayment::class); } /** * Get the tax associated with the customer. * * @return BelongsTo */ public function customer(): BelongsTo { return $this->belongsTo(Customer::class); } public function party(): BelongsTo { return $this->belongsTo(Party::class); } /** * 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/database/../tests/../app/Models/Order.php