belongsTo('Account'); } public function client() { return $this->belongsTo('Client'); } public function invoice_items() { return $this->hasMany('InvoiceItem'); } public function invoice_status() { return $this->belongsTo('InvoiceStatus'); } public function getName() { return $this->invoice_number; } public function getEntityType() { return ENTITY_INVOICE; } } Invoice::created(function($invoice) { Activity::createInvoice($invoice); });