belongsTo(Account::class, 'income_account_id'); } public function expenseAccount(): BelongsTo { return $this->belongsTo(Account::class, 'expense_account_id'); } public function taxes(): MorphToMany { return $this->morphToMany(Tax::class, 'adjustmentable', 'adjustmentables') ->wherePivot('adjustment_type', Tax::class); } public function discounts(): MorphToMany { return $this->morphToMany(Discount::class, 'adjustmentable', 'adjustmentables') ->wherePivot('adjustment_type', Discount::class); } }