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
/
medico.codeskitter.site
/
app
/
Models
/
DueCollect.php
/
/
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Factories\HasFactory; class DueCollect extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'business_id', 'party_id', 'user_id', 'sale_id', 'purchase_id', 'invoiceNumber', 'totalDue', 'dueAmountAfterPay', 'payDueAmount', 'paymentType', 'paymentDate', ]; public static function boot() { parent::boot(); static::creating(function ($model) { $id = DueCollect::where('business_id', auth()->user()->business_id)->count() + 1; $model->invoiceNumber = "D-" . str_pad($id, 5, '0', STR_PAD_LEFT); }); } public function user() : BelongsTo { return $this->belongsTo(User::class); } public function party() : BelongsTo { return $this->belongsTo(Party::class); } public function sale() : BelongsTo { return $this->belongsTo(Sale::class); } public function purchase() : BelongsTo { return $this->belongsTo(Purchase::class); } /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'party_id' => 'integer', 'payDueAmount' => 'double', ]; }
/home/users/unlimited/www/medico.codeskitter.site/app/Models/DueCollect.php