| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- class OwnerFeeLogistic extends Model
- {
- use ModelLogChanging;
- public $timestamps=false;
- protected $fillable = [
- "province_id",
- "owner_id",
- "city_id",
- "logistic_id",
- "order_number",
- "recipient_name",
- "recipient_phone",
- "quantity",
- "unit_id",
- "interval",
- "price",
- "delivery_fee",
- "pick_fee",
- "fuel_fee",
- "info_fee",
- "other_fee",
- "initial_fee",
- "initial_amount",
- "total_fee",
- "tax_rate",
- "remark",
- "created_at",
- ];
- public function province(): BelongsTo
- {
- return $this->belongsTo(Province::class);
- }
- public function city(): BelongsTo
- {
- return $this->belongsTo(City::class);
- }
- public function owner(): BelongsTo
- {
- return $this->belongsTo(Owner::class);
- }
- public function logistic(): BelongsTo
- {
- return $this->belongsTo(Logistic::class);
- }
- public function unit(): BelongsTo
- {
- return $this->belongsTo(Unit::class);
- }
- }
|