Add project relationship to recurring invoice
This commit is contained in:
parent
cc883f0926
commit
57e3b59b91
1 changed files with 5 additions and 0 deletions
|
|
@ -167,6 +167,11 @@ class RecurringInvoice extends BaseModel
|
|||
return $this->belongsTo(Client::class)->withTrashed();
|
||||
}
|
||||
|
||||
public function project()
|
||||
{
|
||||
return $this->belongsTo(Project::class)->withTrashed();
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class)->withTrashed();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue