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);
|
|
|
|
});
|