补充亿点内容,顺便立Flag

This commit is contained in:
2022-07-10 16:44:30 +08:00
parent 48e2217961
commit 7ed59ddfd2
13 changed files with 235 additions and 3 deletions

View File

@ -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");
}
}