refactor: 修改语言接口

This commit is contained in:
2025-02-13 15:39:55 +08:00
parent 4a2ab24259
commit 88f0a35e5a
3 changed files with 2 additions and 10 deletions

View File

@@ -15,10 +15,4 @@ class LanguageModel extends LanguageBaseModel
{
return $this->belongsTo(CountryModel::class, 'country_id', 'id');
}
// 根据id查询
public function scopeId($query, $value)
{
$query->where('id', '=', $value);
}
}