belongsTo('Invoice'); } public function contact() { return $this->belongsTo('Contact')->withTrashed(); } public function user() { return $this->belongsTo('User')->withTrashed(); } public function account() { return $this->belongsTo('Account'); } public function getLink() { return SITE_URL.'/view/'.$this->invitation_key; } }