refactor: 修改系统页面链接接口
This commit is contained in:
@@ -72,6 +72,12 @@ class ProductModel extends ProductBaseModel
|
||||
$query->where('category_id', '=', $value);
|
||||
}
|
||||
|
||||
// 启用状态查询
|
||||
public function scopeEnabled($query)
|
||||
{
|
||||
$query->where('status', '=', 1);
|
||||
}
|
||||
|
||||
// 上架状态查询
|
||||
public function scopeIsShowNullable($query, bool|null $value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user