- $query = Watch::query()->where(function (Builder $subQuery) use ($entities) {
- foreach ($entities as $entity) {
- $subQuery->orWhere(function (Builder $whereQuery) use ($entity) {
- $whereQuery->where('watchable_type', '=', $entity->getMorphClass())
+ $query = Watch::query()
+ ->where('user_id', '=', $this->user->id)
+ ->where(function (Builder $subQuery) use ($entities) {
+ foreach ($entities as $entity) {
+ $subQuery->orWhere(function (Builder $whereQuery) use ($entity) {
+ $whereQuery->where('watchable_type', '=', $entity->getMorphClass())