| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- use Illuminate\Database\Eloquent\Relations\HasOne;
- class OwnerLogisticFeeDetail extends Model
- {
- use ModelLogChanging;
- public $fillable = [
- 'owner_fee_detail_id', //
- 'logistic_bill',//快递单号
- 'initial_weight',//首重
- 'initial_weight_price',//首重价格
- 'additional_weight',//续重
- 'additional_price',//续重价格
- 'logistic_id',//承运商
- 'owner_id',//货主
- 'additional_weigh_weight',//续重重量
- 'tax_fee'//税费
- ];
- public function ownerFeeDetail(): BelongsTo
- {
- return $this->belongsTo(OwnerFeeDetail::class);
- }
- public function ownerFeeDetailLogistic(): BelongsTo
- {
- return $this->belongsTo(OwnerFeeDetailLogistic::class, 'logistic_bill', 'logistic_bill');
- }
- public function logistic(): BelongsTo
- {
- return $this->belongsTo(Logistic::class);
- }
- }
|