public function videos() { $instance =$this->hasMany('Video'); $instance->getQuery()->where('available','=', 1); return $instance }