'department_id']; public function __construct(array $attributes = []) { parent::__construct($attributes); $this->setTable(plugin()->webman->config('database.channel_recharge_method_table')); } /** * 部门 * @return BelongsTo */ public function department(): BelongsTo { return $this->belongsTo(plugin()->webman->config('database.department_model'), 'department_id')->withTrashed(); } /** * 管理员用户 * @return BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(plugin()->webman->config('database.user_model'), 'user_id')->withTrashed(); } /** * 多语言 * @return hasMany */ public function methodLang(): hasMany { return $this->hasMany(plugin()->webman->config('database.channel_recharge_method_lang_model'), 'method_id'); } /** * 充值配置 * @return hasMany */ public function channelRechargeSetting(): hasMany { return $this->hasMany(plugin()->webman->config('database.channel_recharge_setting_model'), 'method_id'); } }