'department_id']; protected $fillable = [ 'player_id', 'login_domain', 'ip', 'country_name', 'city_name', 'remark', 'department_id', ]; public function __construct(array $attributes = []) { parent::__construct($attributes); $this->setTable(plugin()->webman->config('database.player_login_record_table')); } /** * 玩家信息 * @return BelongsTo */ public function player(): BelongsTo { return $this->belongsTo(plugin()->webman->config('database.player_model'), 'player_id')->withTrashed(); } }