2021-11-07 开源测试版 2.4.0
This commit is contained in:
@@ -39,4 +39,9 @@ class Product extends BaseModel
|
||||
{
|
||||
return $this->belongsTo('Gdoo\Product\Models\Warehouse');
|
||||
}
|
||||
|
||||
public function scopeDialog($q, $value)
|
||||
{
|
||||
return $q->whereIn('id', $value)->pluck('name', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user