You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
ymww_backend/application/admin/model/shopro/user/Address.php

24 lines
403 B

<?php
namespace app\admin\model\shopro\user;
use app\admin\model\shopro\Common;
class Address extends Common
{
protected $name = 'shopro_user_address';
protected $type = [
'is_default' => 'boolean'
];
// 追加属性
protected $append = [];
public function scopeDefault($query)
{
return $query->where('is_default', 1);
}
}