芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/app/Models/SuperAdmin/OfflineInvoice.php
'datetime', 'next_pay_date' => 'datetime', ]; protected static function boot() { parent::boot(); static::observe(OfflineInvoiceObserver::class); static::addGlobalScope(new CompanyScope); } public function company() { return $this->belongsTo(Company::class, 'company_id')->withoutGlobalScopes(['active']); } public function package() { return $this->belongsTo(Package::class, 'package_id'); } public function offlinePaymentMethod() { return $this->belongsTo(OfflinePaymentMethod::class, 'offline_method_id')->whereNull('company_id'); } public function offlinePlanChangeRequest() { return $this->hasOne(OfflinePlanChange::class, 'invoice_id'); } }