'department_id']; public function __construct(array $attributes = []) { parent::__construct($attributes); $this->setTable(plugin()->webman->config('database.player_edit_log_table')); } /** * 玩家信息 * @return BelongsTo */ public function player(): BelongsTo { return $this->BelongsTo(plugin()->webman->config('database.player_model'), 'player_id')->withTrashed(); } /** * 渠道信息 * @return BelongsTo */ public function channel(): BelongsTo { return $this->belongsTo(plugin()->webman->config('database.channel_model'), 'department_id', 'department_id')->withTrashed(); } /** * 管理员用户 * @return BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(plugin()->webman->config('database.user_model'), 'user_id')->withTrashed(); } }