|
@@ -73,4 +73,10 @@ class Pro extends Model
|
|
|
public function shortcuts() {
|
|
|
return $this->hasMany(ProTextShortcut::class, 'pro_id');
|
|
|
}
|
|
|
+
|
|
|
+ public function noteTemplates() {
|
|
|
+ return $this->hasMany(NoteTemplatePro::class, 'pro_id')
|
|
|
+ ->where('is_removed', false)
|
|
|
+ ->orderBy('position_index', 'asc');
|
|
|
+ }
|
|
|
}
|