hubungan di dasar kondisi dalam laravel
public function videos() {
$instance =$this->hasMany('Video');
$instance->getQuery()->where('available','=', 1);
return $instance
}
shafeeque