36 lines
705 B
PHP
36 lines
705 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',
|
|
'country_ids',
|
|
'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');
|
|
}
|
|
}
|