'string' ]; public $incrementing = false; /** * 反向关联到 ProgressChapter */ public function progressChapters() { return $this->hasMany(ProgressChapter::class, 'channel_id', 'uid'); } public function owner() { return $this->belongsTo(UserInfo::class, 'owner_uid', 'userid'); } }