Explorar el Código

打印模板关联

ajun hace 4 años
padre
commit
7cca8bae98
Se han modificado 1 ficheros con 21 adiciones y 0 borrados
  1. 21 0
      app/OwnerLogisticPrintTemplate.php

+ 21 - 0
app/OwnerLogisticPrintTemplate.php

@@ -0,0 +1,21 @@
+<?php
+
+namespace App;
+
+use Illuminate\Database\Eloquent\Model;
+
+use App\Traits\ModelLogChanging;
+use Illuminate\Database\Eloquent\Relations\BelongsTo;
+
+class OwnerLogisticPrintTemplate extends Model
+{
+    use ModelLogChanging;
+
+    protected $fillable = ['owner_id','logistic_id','print_template_id'];
+    //
+
+    public function printTemplate(): BelongsTo
+    {
+        return $this->belongsTo(PrintTemplate::class);
+    }
+}