更新代码
This commit is contained in:
23
app/Models/Freight.php
Normal file
23
app/Models/Freight.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use RuLong\Area\Models\Area;
|
||||
|
||||
/**
|
||||
* 邮费模型
|
||||
*/
|
||||
class Freight extends Model
|
||||
{
|
||||
protected $table = 'seller_freights';
|
||||
|
||||
public function seller()
|
||||
{
|
||||
return $this->belongsTo(Seller::class);
|
||||
}
|
||||
|
||||
public function area()
|
||||
{
|
||||
return $this->belongsTo(Area::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user