You've already forked lubo_comment_query
补充亿点内容,顺便立Flag
This commit is contained in:
@ -10,4 +10,9 @@ class Videos extends Model
|
||||
{
|
||||
return $this->hasMany(VideoComments::class, "aid", "id");
|
||||
}
|
||||
|
||||
public function programs(): \Illuminate\Database\Eloquent\Relations\HasManyThrough
|
||||
{
|
||||
return $this->hasManyThrough(Programs::class, ProgramVideos::class, "video_bvid", "bvid", "id", "program_id");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user