Add project relationship to recurring invoice

This commit is contained in:
= 2021-02-27 07:48:49 +11:00
parent cc883f0926
commit 57e3b59b91

View File

@ -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();