'integer', 'card_fee' => 'integer', 'hometax_fee' => 'integer', 'subscription_total' => 'integer', 'tax_invoice_count' => 'integer', 'tax_invoice_amount' => 'integer', 'usage_total' => 'integer', 'grand_total' => 'integer', ]; // ========================================================================= // 관계 정의 // ========================================================================= public function member(): BelongsTo { return $this->belongsTo(BarobillMember::class, 'member_id'); } // ========================================================================= // 스코프 // ========================================================================= public function scopeOfMonth($query, string $billingMonth) { return $query->where('billing_month', $billingMonth); } }