OwnerLogisticPrintTemplate.php 426 B

123456789101112131415161718192021
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. use App\Traits\ModelLogChanging;
  5. use Illuminate\Database\Eloquent\Relations\BelongsTo;
  6. class OwnerLogisticPrintTemplate extends Model
  7. {
  8. use ModelLogChanging;
  9. protected $fillable = ['owner_id','logistic_id','print_template_id'];
  10. //
  11. public function printTemplate(): BelongsTo
  12. {
  13. return $this->belongsTo(PrintTemplate::class);
  14. }
  15. }