Ver código fonte

添加关联

ajun 4 anos atrás
pai
commit
7b4dd5e0d7
1 arquivos alterados com 10 adições e 0 exclusões
  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);
+    }
 }