wyyl/beike/Models/Logistics.php

20 lines
563 B
PHP

<?php
namespace Beike\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\SoftDeletes;
class Logistics extends Base
{
use HasFactory;
use SoftDeletes;
protected $fillable = ['name', 'warehouse_name', 'country_id', 'type', 'first_weight', 'first_weight_fee', 'continuation_weight_max', 'add_weight', 'continuation_weight_fee', 'throwing_ratio', 'num_fee', 'day_min', 'day_max','position'];
public function country()
{
return $this->belongsTo(Country::class, 'country_id', 'id');
}
}