芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/app/Models/RecurringInvoice.php
hasMany(Invoice::class, 'invoice_recurring_id'); } public function project(): BelongsTo { return $this->belongsTo(Project::class, 'project_id'); } public function client(): BelongsTo { return $this->belongsTo(User::class, 'client_id')->withoutGlobalScope(ActiveScope::class); } public function clientdetails(): BelongsTo { return $this->belongsTo(ClientDetails::class, 'client_id', 'user_id'); } public function items(): HasMany { return $this->hasMany(RecurringInvoiceItems::class, 'invoice_recurring_id'); } public function currency(): BelongsTo { return $this->belongsTo(Currency::class, 'currency_id')->withoutGlobalScope(ActiveScope::class); } public function getTotalAmountAttribute() { if (!is_null($this->total) && !is_null($this->currency->currency_symbol)) { return $this->currency->currency_symbol . $this->total; } return ''; } public function getIssueOnAttribute() { if (is_null($this->issue_date)) { return ''; } return Carbon::parse($this->issue_date)->format('d F, Y'); } }