OwnerFeeExpress.php 827 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. }