mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix: query announcement with segment wherein.
This commit is contained in:
@@ -15,7 +15,7 @@ class HasSegments implements Filter
|
||||
public static function apply(Builder $builder, $value)
|
||||
{
|
||||
return $builder->whereHas('segments', function ($q) use ($value) {
|
||||
$q->where('id', $value);
|
||||
$q->whereIn('id', $value);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user