refactor: 国家列表接口添加按名称搜索
This commit is contained in:
@@ -18,6 +18,9 @@ class Country
|
||||
'name',
|
||||
'en_name',
|
||||
])
|
||||
->withSearch(['name'], [
|
||||
'name' => request()->param('name') ?? null
|
||||
])
|
||||
->order(['sort' => 'asc', 'id' => 'asc'])
|
||||
->select();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user