OwnerFeeExpress.php 921 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. use App\Traits\ModelLogChanging;
  5. use Illuminate\Database\Eloquent\Relations\BelongsTo;
  6. class OwnerFeeExpress extends Model
  7. {
  8. use ModelLogChanging;
  9. public $timestamps = false;
  10. protected $fillable = [
  11. "province_id",
  12. "logistic_id",
  13. "logistic_number",
  14. "weight",//重量
  15. "initial_weight",//首重
  16. "initial_weight_price",//首重价格
  17. "additional_weight",//续重
  18. "additional_weight_amount",//续重数量,
  19. "additional_weight_price",//续重价格
  20. "total_fee",//总费用
  21. "tax_rate",//税率
  22. "created_at",
  23. "owner_id"//货主
  24. ];
  25. public function province(): BelongsTo
  26. {
  27. return $this->belongsTo(Province::class);
  28. }
  29. public function logistic(): BelongsTo
  30. {
  31. return $this->belongsTo(Logistic::class);
  32. }
  33. }