| 1234567891011121314151617181920212223242526 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- 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'];
- public function ownerFeeDetail(): HasOne
- {
- return $this->hasOne(OwnerFeeDetail::class);
- }
- public function ownerFeeDetailLogistic(): HasOne
- {
- return $this->hasOne(OwnerFeeDetailLogistic::class,'logistic_bill', 'logistic_bill');
- }
- }
|