浏览代码

Client->coreNote()

Vijayakrishnan 3 年之前
父节点
当前提交
4383714398
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/Models/Client.php

+ 4 - 0
app/Models/Client.php

@@ -837,4 +837,8 @@ ORDER BY m.ts DESC
         }
         return '-';
     }
+
+    public function coreNote(){
+        return $this->hasOne(Note::class, 'id', 'core_note_id');
+    }
 }