Usages
Payment is polymorphic
, hence with the use of trait HasPayable
can be used with any model.
HasPayable Available methods
payments
returns Illuminate\Database\Eloquent\Relations\MorphMany
Retrieves the model payments record. payments is polymorphic relation
pay
parameter
amount (float) : Payment amount to be registered
returns
Pratiksh\Payable\Models\Payment
modifyPay
parameter
payment(Pratiksh\Payable\Models\Payment) : Payment instance to be updated
amount (float) : Payment amount to be updated
returns
Pratiksh\Payable\Models\Payment
Last updated