From 57e3b59b9197f87f45c375d94df52fbf7b18d55a Mon Sep 17 00:00:00 2001 From: = Date: Sat, 27 Feb 2021 07:48:49 +1100 Subject: [PATCH] Add project relationship to recurring invoice --- app/Models/RecurringInvoice.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/RecurringInvoice.php b/app/Models/RecurringInvoice.php index 42ece6503403..6bba8fc6242d 100644 --- a/app/Models/RecurringInvoice.php +++ b/app/Models/RecurringInvoice.php @@ -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();