feat: 新增语言列表,语言切换接口

This commit is contained in:
2025-01-18 17:21:34 +08:00
parent b221633a47
commit b11968bcf7
3 changed files with 64 additions and 0 deletions

View File

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