ajun 4 лет назад
Родитель
Сommit
7b4dd5e0d7
1 измененных файлов с 10 добавлено и 0 удалено
  1. 10 0
      app/OwnerLogisticPrintTemplate.php

+ 10 - 0
app/OwnerLogisticPrintTemplate.php

@@ -18,4 +18,14 @@ class OwnerLogisticPrintTemplate extends Model
     {
         return $this->belongsTo(PrintTemplate::class);
     }
+
+    public function owner():BelongsTo
+    {
+        return $this->belongsTo(Owner::class);
+    }
+
+    public function logistic():BelongsTo
+    {
+        return $this->belongsTo(Logistic::class);
+    }
 }