| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- use Illuminate\Database\Eloquent\Relations\HasOne;
- class OwnerFeeDetailLogistic extends Model
- {
- use ModelLogChanging;
- protected $fillable=[
- "owner_fee_detail_id","amount","logistic_bill","volume","weight","logistic_fee","tax_fee"
- ];
- public $timestamps = false;
- public function logistic()
- { //快递
- return $this->belongsTo(Logistic::class);
- }
- public function ownerLogisticFeeDetail(): HasOne
- {
- return $this->hasOne(OwnerLogisticFeeDetail::class, 'logistic_bill', 'logistic_bill');
- }
- }
|