1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 21:52:35 +01:00
invoiceninja/app/models/Payment.php

16 lines
223 B
PHP
Raw Normal View History

2013-11-26 13:45:07 +01:00
<?php
class Payment extends Eloquent
{
protected $softDelete = true;
public function invoice()
{
return $this->belongsTo('Invoice');
}
2013-11-26 22:45:10 +01:00
}
Payment::created(function($payment)
{
Activity::createPayment($payment);
});