From e115536b8cc887b90e15a75582a42d21e4ab5418 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 9 Feb 2021 07:13:16 +1100 Subject: [PATCH] Add quote() relation to activity --- app/Models/Activity.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Models/Activity.php b/app/Models/Activity.php index 9197606460ff..afeda7e23c5f 100644 --- a/app/Models/Activity.php +++ b/app/Models/Activity.php @@ -133,6 +133,14 @@ class Activity extends StaticModel return $this->belongsTo(Invoice::class)->withTrashed(); } + /** + * @return mixed + */ + public function quote() + { + return $this->belongsTo(Quote::class)->withTrashed(); + } + /** * @return mixed */