51 lines
758 B
PHP
51 lines
758 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use RuLong\Order\Contracts\Addressbook;
|
|
|
|
/**
|
|
* 配送点模型
|
|
*/
|
|
class Station extends Model implements Addressbook
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'seller_stations';
|
|
|
|
/**
|
|
* 配送网点名称
|
|
* @return string
|
|
*/
|
|
public function getName(){
|
|
return $this->name;
|
|
|
|
}
|
|
|
|
/**
|
|
* 配送网点电话
|
|
* @return string
|
|
*/
|
|
public function getMobile(){
|
|
return $this->mobile;
|
|
|
|
}
|
|
|
|
/**
|
|
* 配送网点地址
|
|
* @return string
|
|
*/
|
|
public function getAddress(){
|
|
return $this->address;
|
|
|
|
}
|
|
|
|
|
|
public function seller()
|
|
{
|
|
return $this->belongsTo(Seller::class);
|
|
}
|
|
|
|
}
|
|
|