feat: 新增语言列表,语言切换接口
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user