updates for exposing pivot deleted_at column

This commit is contained in:
David Bomba 2023-10-06 14:23:06 +11:00
parent 63de5df95e
commit f768932b4b

View File

@ -316,7 +316,7 @@ class Invoice extends BaseModel
*/ */
public function payments(): \Illuminate\Database\Eloquent\Relations\MorphToMany public function payments(): \Illuminate\Database\Eloquent\Relations\MorphToMany
{ {
return $this->morphToMany(Payment::class, 'paymentable')->withTrashed()->withPivot('amount', 'refunded')->withTimestamps(); return $this->morphToMany(Payment::class, 'paymentable')->withTrashed()->withPivot('amount', 'refunded', 'deleted_at')->withTimestamps();
} }
/** /**