| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- class OwnerFeeExpress extends Model
- {
- use ModelLogChanging;
- public $timestamps = false;
- protected $fillable = [
- "province_id",
- "logistic_id",
- "logistic_number",
- "weight",//重量
- "initial_weight",//首重
- "initial_weight_price",//首重价格
- "additional_weight",//续重
- "additional_weight_amount",//续重数量,
- "additional_weight_price",//续重价格
- "total_fee",//总费用
- "tax_rate",//税率
- "created_at",
- "owner_id"//货主
- ];
- public function province(): BelongsTo
- {
- return $this->belongsTo(Province::class);
- }
- public function logistic(): BelongsTo
- {
- return $this->belongsTo(Logistic::class);
- }
- }
|