mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 14:42:42 +01:00
16 lines
223 B
PHP
Executable File
16 lines
223 B
PHP
Executable File
<?php
|
|
|
|
class Payment extends Eloquent
|
|
{
|
|
protected $softDelete = true;
|
|
|
|
public function invoice()
|
|
{
|
|
return $this->belongsTo('Invoice');
|
|
}
|
|
}
|
|
|
|
Payment::created(function($payment)
|
|
{
|
|
Activity::createPayment($payment);
|
|
}); |