OwnerLogisticFeeDetail.php 643 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. use App\Traits\ModelLogChanging;
  5. use Illuminate\Database\Eloquent\Relations\HasOne;
  6. class OwnerLogisticFeeDetail extends Model
  7. {
  8. use ModelLogChanging;
  9. public $fillable = ['owner_fee_detail_id', 'logistic_bill', 'initial_weight', 'initial_weight_price', 'additional_weight', 'additional_price'];
  10. public function ownerFeeDetail(): HasOne
  11. {
  12. return $this->hasOne(OwnerFeeDetail::class);
  13. }
  14. public function ownerFeeDetailLogistic(): HasOne
  15. {
  16. return $this->hasOne(OwnerFeeDetailLogistic::class,'logistic_bill', 'logistic_bill');
  17. }
  18. }