📅  最后修改于: 2022-03-11 14:53:42.896000             🧑  作者: Mango
public function videos() {
$instance =$this->hasMany('Video');
$instance->getQuery()->where('available','=', 1);
return $instance
}