OwnerLogisticPrintTemplate.php 652 B

123456789101112131415161718192021222324252627282930
  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. public $timestamps = false;
  10. protected $fillable = ['owner_id','logistic_id','print_template_id'];
  11. public function printTemplate(): BelongsTo
  12. {
  13. return $this->belongsTo(PrintTemplate::class);
  14. }
  15. public function owner():BelongsTo
  16. {
  17. return $this->belongsTo(Owner::class);
  18. }
  19. public function logistic():BelongsTo
  20. {
  21. return $this->belongsTo(Logistic::class);
  22. }
  23. }