\App\Enums\ShipmentDirection::class, 'type' => \App\Enums\ShipmentType::class, 'status' => \App\Enums\ShipmentStatus::class, ]; } public function user(): BelongsTo { return $this->belongsTo(User::class); } public function fromCountry(): BelongsTo { return $this->belongsTo(Country::class, 'from_country_id'); } public function toCountry(): BelongsTo { return $this->belongsTo(Country::class, 'to_country_id'); } public function items(): HasMany { return $this->hasMany(ShipmentItem::class); } public function carrierMappings(): HasMany { return $this->hasMany(ShipmentCarrierMapping::class); } public function trackingEvents(): HasMany { return $this->hasMany(ShipmentTrackingEvent::class); } }