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');
+    }
 }